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

I need a regenerate button model. [closed]

Asked by
Wolf8D 25
10 years ago

This question already has an answer here:

How would I script a regen button?

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!

Marked as Duplicate by evaera

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

1 answer

Log in to vote
2
Answered by 10 years ago

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)
Ad