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

How would I make a boat dissapear after you get off it?

Asked by 10 years ago
function on Player.Leave.Model
model:destory()
end

I don't know any other way to make that work.

2 answers

Log in to vote
1
Answered by 10 years ago

Easy, When you get in the boat it creates a weld.

So do

while true do
wait()
if script.Parent:FindFirstChild("Weld") ~= nil --Change the weld name to the actual welds name. 
then
script.Parent.Parent:remove()
end
end

This is a bit rusty. But it should work. Make sure there is a script that enables this one on touch.

Ad
Log in to vote
0
Answered by 10 years ago

You can just add a script on the boat model to delete it. And make it Disabled. Then make another script which detects players and launches the destroy script on the boat :/

Answer this question