Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would i make a player die on serverside some hours after they join the game?

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?

4 comments

0

I'm thinking remote events or just a script in ServerScriptService.

0

maybe

0

Just one player?

0

Multiple players so say 1 player enters the game their countdown starts then another player enters then their countdown starts.

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.