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

How the heck can i make a car regenerator?

How the heck can i make a car regenerator? i need one!

I've tried but it always fails -_-

1 answer

I have done something similar (spawning in customizable vehicles).

  1. You should probably put the car in Server Storage for reference
  2. When the trigger is fired (i.e. the car is destroyed), just use the model:Clone() method alongside model:MoveTo(Vector3.new(x,y,z)

It should be something like this:

function onRespawn()
	local newcar = ServerStorage.Car:Clone()
	newcar:MoveTo(Vector3.new(wherever you want this)
end

--And then when trigger is fired/conditions are met, just :connect(onRespawn)

Hope this helped!

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