Hello I am new to the DevForum and this is my first post.
What do you want to achieve? I have a teleport button but I just need to know how to make it so if your in a vehicle seat or a seat then, you press the tp button and your character will auto jump to prevent this.
What solutions have you tried so far? I’m only a beginners script so I only know a little bit of scripting.
here’s the code for the TP button
character = game.Players.LocalPlayer.Character
script.Parent.MouseButton1Click:connect(function()
character.HumanoidRootPart.CFrame = CFrame.new(workspace.TP_Point.Position)
script.Parent.Parent.Parent.Parent.Teleport_Areas.Visible = false
end)
–don’t worry about the TP_Point, that is my brick name where players teleport
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
So you want the player to jump out of the seat if they are seated, before they are teleported so they don’t take the vehicle with them?
Your explanation doesn’t say anything about that, and your pictures show you seated in a vehicle so I am just assuming this is what you are trying to prevent.