Hi I’m trying to make a player teleport to another place when they touch a part. There is an error in line one but I don’t know what it is. Could you please depict my code (I tried but I’m very new to this).
local TeleportService = game.GetService("TeleportService")
local Place = 4800310604
script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
TeleportService:Teleport(4800310604, player)
end
end)
Thanks for reading