Proximity Prompt Doesn't Work

Hi, I was just working on my rock, paper, scissors game and I tried to do proximity prompts on them. 10 of them did work pretty well but 11th and 12th didn’t.

Here’s what happens:
https://gyazo.com/f0410d3d08f23120194f82e9aff077f3

Here’s the code:

local ProximityPrompt = script.Parent
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local StageSpawn11 = ReplicatedStorage.Configuration.StageSpawn11
local user10 = ReplicatedStorage.Configuration.Users.User10

ProximityPrompt.Triggered:Connect(function(player)
	if script.Parent.ActionText == "Get in the stage" then
		local humanoid = player.Character.Humanoid
		player.Character.HumanoidRootPart.CFrame = script.Parent.Parent.CFrame + Vector3.new(0, 1, 0)
		humanoid.WalkSpeed = 0
		humanoid.JumpPower = 0
		StageSpawn11.Value = true
		ProximityPrompt.ActionText = "Get off the stage"
		user10.Value = player.Name
	else
		local humanoid = player.Character.Humanoid
		humanoid.WalkSpeed = 16
		humanoid.JumpPower = 50
		ProximityPrompt.ActionText = "Get in the stage"
		StageSpawn11.Value = false
		user10.Value = ""
	end
end)

1 Like

Is this a problem in Roblox’s side? I used this code in 12 of them and 10 of them worked.

Is the part with the proxy prompt anchored?

Is the proximity prompt enabled? Where is the part with the proximity prompt?

Proximity prompt is enabled indeed, and 10 of them worked.

It is anchored, is it supposed to be not anchored?

No it is supposed to be anchored, else it’ll just fall.

Can I see the proximity prompt settings (for the ones that don’t work)

iirc there’s a setting called Exclusivity, try using that

Okay, I solved it by re-making the part. Thanks!

The actual solution would be turning the RequiresLineOfSight option off the proximity prompt.

2 Likes