My game teleporters were working just fine; however, now they’re broken
I’m not sure why they’re broken now when I haven’t even changed anything with the script—I tried adding a loading screen GUI but decided not to since it’s not working.
Here’s the script:
local TeleportService = game:GetService("TeleportService")
local ProximityPrompt = script.Parent
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Place = 10070824586
local teleportGui = ReplicatedStorage.LoadingScreen
ProximityPrompt.Triggered:Connect(function(plr, teleportGui)
TeleportService:SetTeleportGui(teleportGui)
TeleportService:Teleport(Place, plr)
end)
That script is in a ServerScript w/in a Proximity Prompt.
Not sure why it’s broken? It was just working & now in my game they’re all broken.
Also, my GUI Button script isn’t working either
This script is w/in a LocalScript w/in a Textbutton.
script.Parent.MouseButton1:Connect(function()
game:GetService("TeleportService"):Teleport(game.Players.LocalPlayer,473855848)
end)