Push E and never push it again


When a player activates the ProximityPrompt, I want it to not be usable anymore. Like there’s no ProximityPrompt for that player.


Before pushing E

After pushing E there is not a ProximityPrompt (shows again and is usable if the player rejoins)

I also want it to add 1 to a leaderstat called “Number”

How would I do this? Thanks

You could handle the Prompt deactivation on the client side perhaps?

local Player = game.Players.LocalPlayer
local leaderstats = Player:WaitForChild("leaderstats")
local Stat = leaderstats.Number
local Prompt = workspace.NPC.Head:WaitForChild("ProximityPrompt")

    Prompt.Enabled = false
    Stat.Value += 1

If you want the values to change from the server side, you’d need to use RemoteEvents to handle client-server transportation

1 Like

Great! I believe this will work. Thanks again! :laughing: