So i was making a game like camping but i run across a error i tried to make a part that would teleport u but because youre seated it wont teleport you i tried to kill the player before the teleportation but that wont work can anyonehelp me?
-- teleport script
function onTouched(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
game:GetService("TeleportService"):Teleport(866960826,player)
end
end
script.Parent.Touched:connect(onTouched)
-- car script
Car = script.Parent
while true do
wait(5)
for i = 1,100 do
Car:TranslateBy(Vector3.new(0,0,-1))
wait()
end
for i = 1,100 do
Car:TranslateBy(Vector3.new(0,0,1))
wait()
end
end

8 comments
Added the teleportation script
It does not work can u show me if i add you to team creates?
Add me on discord: - ??Speedy ??-#2605
Give me your discord actually
?i?sc?o??d#7068
b r u hh
https://pastebin.com/jL6c7vVn i made a pasteabin with my name
Jesus christ, you made it so nobody can add you.. Add me https://pastebin.com/zXGMbEEX