Hello, I'm in the process of making a similar game like Camping. I have 1 problem though, my Teleport script isn't detecting the player when he hits the main Teleport brick. The player is in a programmed car that moves forward to the main block. He is also in a Seat unable to move until the player is teleported to the next game. Is one of those the issue of my Teleport script not detecting the Player? IF so, is there a way I could fix this issue?
Here is the script:
local TeleportService = game:GetService("TeleportService")
local gameID = 4459522530
function onTouched(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
TeleportService:teleport(gameID, player)
end
end
script.parent.Touched:Connect(onTouched)

5 comments
Post the script.
No edit your post and put it in a code-block.
Alright I posted the script
Did you test this in the real game,cuz we cannot teleport in studio.
Yeah I did test it in an actual server, it's more of that the game isn't detecting the player when it's in the car.