[SOLVED] Event:Wait() function will break/cancel out wait(). Any solutions?
This question has been solved by the original poster.
Hey there! I have a bit of an engine question here. For whatever reason, using the Event:Wait() function will cancel out all future calls of wait(). If anyone could help that would be great.
1 | local remote = Instance.new( "RemoteEvent" ,game.ReplicatedStorage.AnimRemotes) |
2 | remote.Name = "ServerCall" |
3 | game.ReplicatedStorage.AnimRemotes.CallClient:FireClient(attacker,remote,game.ReplicatedStorage.Anims.TestPunch) |
4 | remote.OnServerEvent:Wait() |
6 | print ( "received custom event" ) |
7 | target.HP.Value = target.HP.Value- 1 |
(wha prints instantly without waiting.)