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

Whats wrong with my Regenerate script?

I have conducted many test, and tried many different methods, but none of them are working, the script doesn't work in Online nor Solo mode, here is the script;

wait()
local c=workspace.Regen
local mode=c:Clone()
print("Regen Loaded")
while wait(30)do
mode:remove()
wait(4)
c=mode:Clone()
c:MakeJoints()
c.Parent=workspace
end

I can't figure out whats wrong?

1 answer

Regenerate for what? Model or NPC?

if npc Here try this

name="Humanoid"



robo=script.Parent:clone()



while true do

	wait(180) -- Change this to how many seconds you want to wait till the Crusader respawns. --

	if script.Parent.Humanoid.Health<1 then

		robot=robo:clone()

		robot.Parent=script.Parent.Parent

		robot:makeJoints()

		script.Parent:remove()

	end

end

Hope this helps :D

2 comments

0

I meant to Regen things like Houses and stuff like that, but thats ok, I'll save this when I start working on NPC's again, thanks. ;) +1

0

I dint know houses lol i though u meant npc well if u meant houses on touch or clicked to regen?

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