local db = true
script.Parent.Touched:connect(function(hit)
if hit.Name == "pickuparea" then game.Players:FindFirstChild("Humanoid")
if db == true then
db = false
script.Parent.Transparency = 1
local player = script.Parent.Touched
player.leaderstats.Robux.Value = player.leaderstats.Robux.Value + 10
script.Parent.Sound:Play()
script.Parent.Transparency = 1
wait(60)
db = true
script.Parent.Transparency = 0
end
end
end)
I need the script to detect the player that is using the tool, so that the player can be rewarded with currency. I need help ASAP and it will be greatly appreciated

1 comment
A thing you need to get noticed, don't use ROBUX as your stat name. A popular tycoon maker got banned by doing a ROBUX tycoon, that give people think the tycoon really gives ROBUX. so, honestly, just do it to Money, cash, or coins. Thanks, and sorry that I posted something that not suit to this helping website.