Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Whats wrong with my Regenerate script?

Asked by 10 years ago

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

Log in to vote
2
Answered by 10 years ago

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

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 TheeDeathCaster 2368 — 10y
0
I dint know houses lol i though u meant npc well if u meant houses on touch or clicked to regen? Revenant101 25 — 10y
Ad

Answer this question