of     1   

Zappnes
#796351Sunday, April 20, 2008 7:35 PM GMT

model = script.Parent.Parent backup = model:clone() enabled = true function regenerate() local p = script.Parent.Position model:remove() model = backup:clone() model.Parent = game.Workspace model.Position = p model:makeJoints() message.Parent = nil enabled = false wait(30) enabled = true end end function onHit(hit) if (hit.Parent:FindFirstChild("Humanoid") ~= nil) and enabled then regenerate() end end script.Parent.Touched:connect(onHit) its suppose to create the copy at the place the buttom is exacly same time as you push the buttom I just creates the copy from where the buttom stood when the server started
John1626
#796419Sunday, April 20, 2008 7:44 PM GMT

Not tested! This is a button: local new = game.Workspace.MODELNAMEHERE:clone() local ting = 0 function onTouched(hit) if ting == 0 then ting = 1 check = hit.Parent:FindFirstChild("Humanoid") if check ~= nil then game.Workspace.MODELNAMEHERE:Remove() wait(2) new.Parent = game.Workspace game.Workspace.MODELNAMEHERE:MakeJoints() end end ting = 0 end script.Parent.Touched:connect(onTouched)
Zappnes
#796442Sunday, April 20, 2008 7:48 PM GMT

tnx but it doesnt place the new model at the localtion of the buttom witch is the problem i got¨ it gota regen at/over the buttoms location
Zappnes
#796580Sunday, April 20, 2008 8:09 PM GMT

Please help its really nessecary
Zappnes
#799341Monday, April 21, 2008 4:36 AM GMT

bu.mp
Andreaz
#800591Monday, April 21, 2008 4:40 PM GMT

SOMEONE? anyone?
John1626
#821478Friday, April 25, 2008 3:48 AM GMT

local new = game.Workspace.MODELNAMEHERE:clone() local ting = 0 function onTouched(hit) if ting == 0 then ting = 1 check = hit.Parent:FindFirstChild("Humanoid") if check ~= nil then game.Workspace.MODELNAMEHERE:Remove() wait(2) new.Parent = game.Workspace new.Position = game.Workspace.BUTTONNAMEHERE.Position game.Workspace.MODELNAMEHERE:MakeJoints() end end ting = 0 end script.Parent.Touched:connect(onTouched)
brOofrange
Top 100 Poster
#821951Friday, April 25, 2008 10:53 AM GMT

new.CFrame |not| new.Position
John1626
#822314Friday, April 25, 2008 1:35 PM GMT

Im still trying to learn CFrame. Sorry.

    of     1