Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Teleport Service/ Remote Function Problems?

Asked by
22ron 0
8 years ago

There is a lot of code but it all works up to the point where I teleport the players. Nothing happens and there are no errors i checked the console.

In a script in serverscriptservices

local event = Instance.new("RemoteEvent")
event.Parent = game.Workspace 
event.Name = "SendPlayersToGame" 
local TS = game:GetService("TeleportService")
event.OnServerEvent:connect(function(PlaceID,Code,Players)
TS:TeleportToPrivateServer(PlaceID,Code,Players)
end)

In a local Script

game.Workspace.SendPlayersToGame:FireServer(392078814,code,Players)

Answer this question