Hello developers,
I am having a strange problem with the script following,
local telePart = script.Parent
local TeleportService = game:GetService('TeleportService')
local placeID = 7692970573
local canTeleport = true
local function otherGame(otherPart)
print("Teleport Touched")
local player = game.Players:FindFirstChild(otherPart.Parent.Name)
if player and canTeleport then
canTeleport = false
TeleportService:Teleport(placeID, player)
end
end
telePart.Touched:Connect(otherGame)
Nothing comes up in the output.