Does not teleport the player. RemoteEvent not see?

You can write your topic however you want, but you need to answer these questions:

  1. 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.

  2. 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.

  3. 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:
lcscript

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.

is the Event variable the exact same instance? do you have multiple instances named RemoteEvent in replicated storage?

Just one:
dasdasd