How do I make a script to where when a player sits on a Vehicle Seat GUI pops up on their screen? This is as far as I've gotten knowing what I know at the moment.
Workspace = script.Parent.Parent.Parent.Parent
function OnTouched(Player)
if game.Players:GetPlayerFromCharacter(Workspace) then
end
end
script.Parent.Touched:connect(OnTouched)
I don't know if this is all correct. If you could, tell me what part(s) in scripting I should learn so next time when I want to do something like this I know exactly what to do. Thanks
P.s. I'm not asking you to make it for me, i'm asking what part(s) in scripting I should learn so next time when I want to do something like this I know exactly what to do.

2 comments
To get workspace you can just do game.Workspace :)
Thanks... :l What part(s) in scripting should I learn to be able to do what I asked?