decase4Join Date: 2007-11-23 Post Count: 1563 |
Like I Want To Know How And I Want To Make My Stuff Regen?????
Pls Advise |
|
|
ah, regen, the hardest basic script. it is, too my knoweledge, impossible to make a generic regen script. well, good luck with that (: |
|
niraj3Join Date: 2008-03-18 Post Count: 161 |
just search regen buttong and pick one that is ot with a model then open script and edit as you need to =) |
|
|
Do you want it so that when you say kill/Playername you will kill them? |
|
niraj3Join Date: 2008-03-18 Post Count: 161 |
model = game.Workspace
backup = model:clone()
while true do
wait(300) --change nuber to the time oyu want untill regen
message.Parent = game.Workspace
model:remove()
model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
message.Parent = nil
end
i just made this right now |
|
AgentFirefoxTop 100 PosterJoin Date: 2008-06-20 Post Count: 22404 |
function Touch(hit) --Names the function
local h = hit.Parent:FindFirstChild("Humanoid") --Finds Humanoid in the hit's Parent
if h ~= nil then --If Humanoid exists then continue
print(hit.Name)
h.Health = 0 -- Sets the Humanoid's Health to 0
end -- ends (if h ~= nil) line
end -- ends (function Touch(hit)
script.Parent.Touched:connect(Touch) -- Names the part being touched, and connects the function you made earlier
-- NOTE: hit is what touched the part this script is in, the print(hit.Name) line will explain it |
|
AgentFirefoxTop 100 PosterJoin Date: 2008-06-20 Post Count: 22404 |
function Touch(hit) --Names the function
local h = hit.Parent:FindFirstChild("Humanoid") --Finds Humanoid in the hit's Parent
if h ~= nil then --If Humanoid exists then continue
print(hit.Name) --Prints the name of hit into the Output
h.Health = 0 -- Sets the Humanoid's Health to 0
end -- ends (if h ~= nil) line
end -- ends (function Touch(hit)
script.Parent.Touched:connect(Touch) -- Names the part being touched, and connects the function you made earlier
-- NOTE: hit is what touched the part this script is in, the print(hit.Name) line will explain it |
|
AgentFirefoxTop 100 PosterJoin Date: 2008-06-20 Post Count: 22404 |
Sorry for double post... stupid errors aren't errors all the time... O.o |
|
|
Nirage you must be a total noob. That's just a Free Models script. |
|
AgentFirefoxTop 100 PosterJoin Date: 2008-06-20 Post Count: 22404 |
lol it won't even work... here (this should work even if the model falls off the baseplate):
--------------------
model = game.Workspace.ModelNameHere
backup = model:clone()
while true do
wait(300) -- Time before regens again
if model ~= nil then
model:remove()
wait(2) -- Time before
Model = backup:clone()
Model.Parent = game.Workspace
Model:MakeJoints()
else
Model = backup:clone()
Model.Parent = game.Workspace
Model:MakeJoints()
end
end
|
|
decase4Join Date: 2007-11-23 Post Count: 1563 |
Hmmmmmm Ok Let Me Try It??? |
|