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)