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

Can someone help me with my script?

Well I made this script but I want it to wait a few seconds, but when I put it for more than a second it doesn't work. Can someone help me?

name="Humanoid"

robo=script.Parent:clone()

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

2 answers

The wait time shouldn't affect the code you have there. What's in the output?

Put

if script.Parent.Humanoid.Health<1 then

Over the wait(1)

2 comments

0

It makes my game freeze when I start playing :/

0

Your script must have error then, I can't see one tho.

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