You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I need the player to be teleported to a private place by pressing a button. -
What is the issue? Include screenshots / videos if possible!
If I’m not mistaken, for some reason the signal does not reach the server.
There are no errors. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
LocalScript
script.Parent.MouseButton1Up:Connect(function ()
Event:FireServer()
script.Parent.Visible = false
loadingGui.Enabled = true
TeleportService:SetTeleportGui(loadingGui)
warn("localescript")
end)
displayed by warn:
![]()
Script → ServerScriptService:
local TS = game:GetService("TeleportService")
local Event = game.ReplicatedStorage:WaitForChild("RemoteEvent")
Event.OnServerEvent:Connect(function(Player)
warn("iswarn")
local code = TS:ReserveServer(12597081237)
warn("hmm1")
TS:TeleportToPrivateServer(12597081237, code, {Player})
warn("hmm2")
end)
None displayed by warn.
