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)
Try this put a regular script in the part that you are trying to make that teleports you
local TeleportService = game:GetService("TeleportService") local Place = (Game Id here) script.Parent.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then TeleportService:Teleport(Place, player) end end)