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

How can I make it so when I regen the car it doesnt take away other persons car when their in it?

Also I need it so if its my own car that I regenerated it gets removed if IM not in it. But when an other person is in it it doesnt get removed.

system = script.Parent

model = system.Station --

backup = model:Clone()

regen = system.Regen



function checkRegen()

	if regen.Value == 1 then

		wait(1)

		model = backup:Clone()

		model.Parent = system

		model:MakeJoints()

	end

end

regen.Changed:connect(checkRegen)

1 answer

I'd try putting the car in Lighting. Then just clone it and put it into workspace. You might want to implement something test i dont know what this is to limit the number of cars in Workspace.

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