So like am trying to make a game with multiple non starting places but I encountered a problem i cant figure out
So when i tested it on my main acc it works it teleports but when use an alt acc it doesn’t works. I enabled third party teleports, made it public and published it but it still doesnt works
Client script:
local Button = script.Parent
local Player = game:GetService("Players").LocalPlayer
local char = game.Players.LocalPlayer.Character
local MainMenuGui = game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("MainMenuGui")
local LoadingGui = game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("LoadingGui")
local ButtonPressedEvent = game.ReplicatedStorage.RemoteEvents.ButtonPressed
Button.MouseButton1Click:Connect(function()
ButtonPressedEvent:FireServer(Player)
end)
Server Script:
local TPService = game:GetService("TeleportService")
local ButtonPressedEvent = game.ReplicatedStorage.RemoteEvents.ButtonPressed
local TPPlaceID = 14689927963
local TeleportGui = game.ReplicatedStorage.TeleportGui
TPService:SetTeleportGui(TeleportGui)
ButtonPressedEvent.OnServerEvent:Connect(function(Player)
local success, result = pcall(TPService:TeleportAsync(TPPlaceID, {Player}))
end)
Any help is appreciated!