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

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

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?

1 comment

0

Are you asking how to make the intro GUI run, or are you asking how to make the intro GUI appear?

1 answer

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)

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