Need urgent help with Proximity Prompt

Ok so i am using the new ProximityPrompt in my game and i need help with it.

Basically i made a script that gives the player money after the Prompt is Triggered, here’s it:

script.Parent.Triggered:Connect(function(player) -- Script is inside PP
	if debounce then
		player.leaderstats.Dinheiro.Value += 10 -- "Dinheiro" is the name of the currency
		wait(0.25)
		script.Parent.Enabled = false
		wait(3) -- Cooldown
		script.Parent.Enabled = true
	end
end)

It works perfectly fine in studio but not in game

Can someone Please help me? :frowning:

It says Studio Beta, not Client Beta. In other words it is not live yet.

3 Likes