How come the proximity prompt doesn't work in one game but works in another one?

I’m making a game that has an obby in it and you’re supposed to activate a proximity prompt at the end in order to win. For some reason, the script inside of the proximity prompt does not activate like it should. However, it’ll work when I copy and paste it into a different game.

Here is a video of it in action: https://youtu.be/sqa55UUQWBM
As you can see, it doesn’t work in the original game but it works in a different game.

Why is this happening and how do I get around this?

In case you were wondering, here is the script inside of the proximity prompt:

script.Parent.Triggered:Connect(function()
	print("Finished Obby")
	script.Parent.Parent.yippe:Play()
	game.ReplicatedStorage.Events.obbyFinish:FireClient()
end)

Did you Test to see if it was just that one proximity prompt by basicaly inserting another proximity Prompt in the game and testing to see if that one works, If so it should be as simple as just deleateing the proximity prompt and re adding it. If not. Then I have no clue.

Just tried it and unfortunately it didn’t work

When you’re firing a remote event to the client, you have to specify what player you want it to go to, for example:

local RPS = game:GetService('ReplicatedStorage')

local Events = RPS:WaitForChild('Events') :: Folder
local ObbyFinishEvent = Events:WaitForChild('obbyFinish') :: RemoteEvent

local proximtyPrompt = script.Parent :: ProximityPrompt
local yippeSound = proximtyPrompt.Parent :: Sound -- You should have the sound inside the script or proximty prompt instead (it's easier)

proximtyPrompt.Triggered:Connect(function(plr)
	ObbyFinishEvent:FireClient(plr) -- Or if you want to fire all clients do: ObbyFinishEvent:FireAllClients()
end)

You can find more answers at: Remote Events and Callbacks | Documentation - Roblox Creator Hub