Game Teleporters broken?

My game teleporters were working just fine; however, now they’re broken :confused:

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:Teleport(Place, plr)

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.


Is that a TextButton? If so, I believe you wanted to use MouseButton1Click

Like @Valkyrop said, use MouseButton1Click and I would look into TeleportAsync.

1 Like

I see now! I’ve fixed that issue now; however, my other Prox.Prompt teleport is still broken :confused:

It was working great just before & I don’t know what’s going on. Is there anything wrong with my script?

Why is there a teleportGui parameter in a ProximityPrompt Trigger, try removing that since you already have a variable for teleportGui