Hey, so I'm trying to make a hitbox thing damage IDK what to call it but anyways the script is meant to do this :D
If a player clicks a part 5 times they make the part get deleted and they receive currency/Money
But here's the problem how do I award a player with Money?
local HitValue = 0
script.Parent.ClickDetector.MouseClick:Connect(function()
HitValue = HitValue + 1
print(HitValue)
end)
while HitValue < 10 do
wait()
if HitValue == 5 then
script.Parent.Parent.TestingWoodPart:Destroy()
end
end

1 comment
Thanks, I know have a better understanding of this :D