How do I make it to where when a player sits on the seat GUI pops up on their screen? This is as far as I've gotten knowing what I know at the moment.
player = game.Players:GetPlayerFromCharacter(script.Parent) script.Parent.Touched:connect(function(hit) if player then end end)
I don't know if this is all correct. Let me know what I should do and 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
Try this it should work.
put = script.Parent.Input s = script.Parent bounce = false function t(p) if bounce == true then return end bounce = true local h = p.Parent:findFirstChild("Humanoid") if h ~= nil then gui = put:GetChildren() for i=1, #gui do if gui[i].className == "ScreenGui" then x = gui[i]:clone() player = game.Players:GetPlayerFromCharacter(p.Parent) if player ~= nil then x.Parent = player.PlayerGui else print("No player found") end end end end wait(1) bounce = false end s.Touched:connect(t)