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

How do you make an animated (gui) intro when someone sits in a seat?

Asked by 10 years ago

So, me and a friend are learning scripting and is there a simple way to make an intro gui when someone sits in a seat?

0
Are you asking how to make the intro GUI run, or are you asking how to make the intro GUI appear? Aethex 256 — 10y

1 answer

Log in to vote
0
Answered by
3rdblox 30
10 years ago

Whenever someone sits on a seat a weld will be added and Part1 should be the player's torso. So, if we insert a script into the seat we can track who sits on it with this:

script.Parent.ChildAdded:connect(function(newWeld)
    char = newWeld.Part1.Parent
    --and do whatever you need to do here
end)

We can also track when someone jumps off of a seat with ChildRemoved

script.Parent.ChildRemoved:connect(function(removedWeld)
    char = removedWeld.Part1.Parent
    --and do whatever you need to do here
end)
Ad

Answer this question