I'm making this waiting game and theirs a event that happens every certain amount of hours after a player joins. How would i make this?
✓ ANSWER ACCEPTED
How would i make a player die on serverside some hours after they join the game?
1 answer
✓ Accepted answer
If you mean you want to kill someone some time after they enter on the game you can do:
game.Players.PlayerAdded:Connect(function(newPlayer)
local char = player.Character or player.CharacterAdded:Wait()
wait(puttimetowaittokillplayerhere)
char.Humanoid.Health=0
end
If you want to make it so they die everytime some time pass after their character spawn you have to add player.CharacterAdded:Connect and put the killing code there.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
I'm thinking remote events or just a script in ServerScriptService.
maybe
Just one player?
Multiple players so say 1 player enters the game their countdown starts then another player enters then their countdown starts.