Hello everyone I come to you today with hopefully an easily-fixable problem that I somehow have just overlooked. I have been working with proximity prompts, and recently finished my script for them and tested it in studio and it works fine, however when I go to test the script in-game, it doesn’t work at all. So I decided to make a much simpler proximity prompt script and test that in studio and then in-game, and it works in studio as well, but not in-game. Here’s the simple proximity prompt script:
for i, v in ipairs(allCheckpoints) do
if v.Name == "TakeCheckpointProximityPrompt" then
v.Triggered:Connect(function(player)
print(player.Name.." has taken a checkpoint!")
end)
end
end
allCheckpoints is a table with all of the descendants of a Folder in the workspace called “Checkpoints”. The script loops through the folder and finds anything named “TakeCheckpointProximityPrompt”, as that is the name of all the proximity prompts.
Hm, that’s strange. The only issue I see is the loading times but since that didn’t work I’m not really sure. Hopefully, someone can help you with this.
Update on this issue: I have solved it and it ended up being a problem with a teleport script I had. The ProximityPrompt script ACTUALLY only worked when I pressed “Play Here” in studio, instead of the regular play button, as when I press the regular play button, I end up spawning somewhere else and I have to use a teleport part.
So because there was no “Play Here” button in-game, it just appeared as if the ProximityPrompt didn’t work in-game, and only worked in studio.
The teleport script actually ended up being the problem here and somehow was messing with the Roblox character’s physics and rendering.