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

Regen Problems with vehicles? [closed]

Asked by 10 years ago

I have trouble regening vehicles like when I get on a vehicle and drive it then someone steps on the regen button it disappears and then I have to walk back. Also how would I make it disappear when you get out of the vehicle or delete it in five seconds

Closed as Not Constructive by User#2

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 10 years ago

Try something like this.

local car = script.Parent.Car
local c = car:Clone()

script.Parent.Regen:connect(function()
    c:Clone().Parent = Workspace
end)
0
do i put it in the regen button or model? danielsarabia11 -2 — 10y
0
Let me modify it so it goes inside the model. Also, name the car "Car", and the button "Regen" Thewsomeguy 448 — 10y
0
ok danielsarabia11 -2 — 10y
0
It is kind of old danielsarabia11 -2 — 10y
Ad