I've tried:
.IsPlaying .Ended .Stopped
They aren't being detected by a Server script, suggestions?
I've tried:
.IsPlaying .Ended .Stopped
They aren't being detected by a Server script, suggestions?
You should detect the events locally and invoke RemoteEvents.
Server:
local Event = Instance.new("RemoteEvent", game.ReplicatedStorage)
Event.Name = "SoundEnded"
Event.OnServerEvent:connect(function(Player)
-- "Player" now contains the player the sound ended for
end)
Client:
workspace.SomeSound.Ended:connect(function()
game.ReplicatedStorage:WaitForChild("SoundEnded"):InvokeServer()
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Yeah, but if some guy stops the music, the whole server will get the same effect.