I am making a game and there are CLICK to teleport scripts in it. When they are in their vehicles if they click the teleporter the car teleports with them.
Is there a way to configure this script so that while they're sitting they do not teleport?
function onClicked()
local c = game.Players:GetChildren()
for i = 1, #c do
c[i].Character.Torso.CFrame = CFrame.new(script.Parent.Parent.Teleport.Position)
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

3 comments
You could make all the players jump then teleport them.
Im looking for more of a "while sitting then false" kind of thing
Ah, I see. Give me a minute to make an answer.