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

I need a regenerate button model.

I want to be able to make a Regen button that does not remove the model when regenerating a second time. This is a problem because whenever I use a vehicle with a Regen and someone touches the Regen, the vehicle that I was currently in disappears. What I mean is to duplicate a model without taking away another. Is there anyway for someone to send me the link to a proper Regen button model. I am looking for something that I can either add the name of the vehicle to the script or group the vehicle with the script.

Thanks!

1 answer

✓ Accepted answer

Just put a part in workspace called "Regenbutton" then inside it add a script and do something like.

Car = game.Workspace.Car --- Set this where to the car of your game is, this is just an example it might not work with you.
function Regen()

Copy = Car:Clone()
Copy.Parent = Workspace
Copy:MoveTo(Vector3.new(0, 0, 0)) --Set this to the position where you want the car to spawn

end
script.Parent.Touched:connect(Regen)

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