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

How do i add a wait to this script to make it work?

name="Humanoid"

robo=script.Parent:clone()

while true do
	wait(10)
	if script.Parent.Humanoid.Health<1 then
		robot=robo:clone()
		robot.Parent=script.Parent.Parent
		robot:makeJoints()
		script.Parent:remove()
	end
end

I used this respawn script for an ai humanoid, but i want to add a wait before the ai humanoid respawns, because it respawns after only like 3 seconds, regular player respawn time. I've tried adding waits but it won't work. Help?

1 answer

Try adding a

wait()

before robot.robo:Clone. I am not sure if this will work because I have not tested it.

This discussion is preserved as it was. New answers, comments, and votes are closed.