Ok so basically in a server script I wrote this code, but it won’t print “yay”… I have been trying to figure this out for a long time
''''
function Intermission()
wait()
game.ReplicatedStorage.ShowVotes:FireAllClients()
workspace.Sound1:Play()
for i = 10,1,-1 do
text.Value = "Intermission "..i
wait(1)
end
print("Yay")
game.ReplicatedStorage.Function:Fire()
print("yay2")
end
'''
It will print yay, but after 10 seconds. This is most likely what you’re looking for:
function Intermission()
game.ReplicatedStorage.ShowVotes:FireAllClients()
workspace.Sound1:Play()
spawn(function()
for i = 10,1,-1 do
text.Value = "Intermission "..i
wait(1)
end
end)
print("Yay")
game.ReplicatedStorage.Function:Fire()
print("yay2")
end
''''
function Intermission()
game.ReplicatedStorage.ShowVotes:FireAllClients()
workspace.Sound1:Play()
for i = 10,1,-1 do
text.Value = "Intermission "..i
wait(1)
end
print("Yay")
game.ReplicatedStorage.Function:Fire()
print("yay2")
end
while true do
Intermission()
break
end
'''