local group = 2718024
local rank = 3
script.Parent.ClickDetector.MouseClick:connect(function(playerWhoClicked)
if playerWhoClicked:GetRankInGroup(group) == rank then --Checks whether the player meets these conditions
script.Parent.ClickDetector.MaxActivationDistance = 0 --'Disables' clicking
script.Parent.Transparency = 1 --Transparent
wait(300) --Wait 5 minutes
script.Parent.Transparency = 0 --Opaque
script.Parent.ClickDetector.MaxActivationDistance = 32 --Default distance
end
end)
This is the script where only the person with the rank "Janitor" can click on the "dirt" block & it will go fully transparent as if they cleaned it up.
I want it where when they click on it they get rewarded 1 point (point leaderboard) & there is a little GUI popup on the side saying "You got rewarded a point!"
(this might be hard so sorry)

4 comments
Please use the code block.
Are you asking how to use PointsService?
Use a code block!
Edited for Code Block