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

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

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

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.

Ad

Answer this question