#Need help with Day Time/ Night Time cycle with ACS gun system
40 messages · Page 1 of 1 (latest)
did you put that on top of another script?
why does acs have a day/night cycle
I am not aware of it having a day/night cycle already implemented in ACS
it does?
wym?
while wait() do
end
print("hey")
```"hey" will only be Printed when the **INFINITE** loop ends
so how do i fix it?
that would work :
task.spawn(function()
while wait() do
end
end)
print("hey")
ok ima try it
I put in "task.spawn(function()
while wait() do
end
end)
print("hey")" instead of the script i had and it isnt printing hey, i dont know if im stupid or something but sorry because i am a beginner with roblox studio
should i have kept the script i originally had and the script you showed me?
why are you guys using task.spawn
It’s useless unless you need actual multithreading, which can be just done with actors
i just like it more than a normal corutine, i think it looks cleaner
Both are recommended to not use if not needed
idk how to make it work
the day/night cycle
i think ACS is overriding it or something
I actually never researched anything on day night time
But this may help https://youtu.be/uJuSF7P9zuM
Hope you guys enjoyed the video, Comment Down below any Roblox Studio Video Ideas!
Video how to add a working clock into the Day and Night cycle: https://www.youtube.com/watch?v=2TuVT7iwgwE&t=61s
Script:
...
which is kinda annoying
that's the exact tuto i found
and it doesnt work
its ACS
Weird
idk how to disable the daytime there
well i guess there's nothing i can do about it right?
i always use that code for day/night, maybe try that:
while wait() do
game.Lighting:setMinutesAfterMidnight(game.Lighting:getMinutesAfterMidnight()+.1)
end
jap
how long do i have to wait till midnight
you can just chnage the speed, its that +.1 there or you change wait() to like wait(.1)