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!
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)
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?