Scripts:
[Client]
local part = game.Workspace:WaitForChild("ServerTouch") part.Touched:Connect(function(hit) game.ReplicatedStorage:WaitForChild("TeleportRemote"):FireServer() end)
[Server]
game.ReplicatedStorage:WaitForChild("TeleportRemote").OnServerEvent:Connect(function(plr) print("#@4") local part = game.Workspace:WaitForChild("ServerTouch") local char = plr.Character or plr.ChildAdded:Wait() local teleportService = game:GetService("TeleportService") local reservation = teleportService:ReserveServer(3641236167) teleportService:TeleportToPrivateServer(3641236167,reservation,{plr}) end)
How can I fix that?