Teleport Button's Script is Doesnt works

Hi! I am DSDCO’s Owner. The Teleport Script didn’t work. I did everything right, but it still didn’t work. Script:

disabled = false

script.Parent.MouseButton1Click:connect(function()
if disabled == false then
disabled = true
game.Workspace.Teleport.RemoteFunction:InvokeServer()
wait(3)
disabled = false
end
end)

1)What do you think is the reason for this not working?

3 Likes

Is there any errors in the output?

show us the Code on the ServerSide

It might be a problem from the serverside script and not this one, could you show us the serverside script?

I don’t necessarily see an error here, could you show me the server side code?

local TeleportService = game:GetService("TeleportService")
local Place = 000000
game.ReplicatedStorage.TeleportPlayers.OnServerEvent:Connect(function()
    local Players = game:GetService("Players"):GetPlayers()
    TeleportService:TeleportPartyAsync(Place, Players)
end)

Maybe try capitalizing your connect(Connect)

Your place variable needs to be the place id, not 000000.

2 Likes

Yeah the person would edit it to be the placeid, lol.

1 Like

I am talking about Gui, which is normally done in Obby games. For example there is a Lobby button, it works but it didn’t work for me.

1 Like

not place id. i dont want game Teleporter,i want to find the failure in this script.

Are you trying it in a game or studio?

im trying in game.İ hope you see To Lobby button on Obby’s