I have written this code and it works perfectly
local Debouunce = true
function Recieve()
if Debouunce == true then
Debouunce = false
script.Parent.BrickColor = BrickColor.Random()
wait(1)
Debouunce = true
end
end
script.Parent.ClickDetector.MouseClick:connect(Recieve)
Can anyone show me how to access a players backpack within the script I need to give them a tool when they click the button, im not sure how to get the player that clicked! :(
Note: The code I wrote for color has nothing to do with the function i want.

1 comment
Would i need a local script inside the part then? To acess the player