Proximity Prompt not working?

I’ve been working on a system for my Backrooms game involving proximity prompts. I have this code in a LocalScript in the proximity prompt and for some reason none of it works whatsoever, not even the print functions I added to debug it.

print("script")
interact = script.Parent
--ui = game.StarterGui
plr = game.Players.LocalPlayer
print("variables ready")

interact.Triggered:Connect(function()
	plr.PlayerGui.ScreenGui.Frame.Visible = true
end)
1 Like

This is because LocalScripts do not run in workspace — the exception being that it is parented to a player’s character. Use a normal script and change the RunContext property to Client.

RunContext property of what exactly?

Scripts. Replace your LocalScript with a Script and change the RunContext property of it to Client.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.