How do you loop this script down below??
local TimesClicked = 0
script.Parent.mouseClick:connect(function(Player)
if script.Parent.Parent.CanCollide == true then
Player.leaderstats.LifeFormFound.Value = Player.leaderstats.LifeFormFound.Value +1
TimesClicked = TimesClicked +1
if TimesClicked == 1 then
script.Parent.Parent.Transparency = 1
script.Parent.Parent.CanCollide = false
wait(3)
script.Parent.Parent.Transparency = 0
script.Parent.Parent.CanCollide = true
end
end
end)

5 comments
it depends on what you want to be looped. what are you trying to do inside the loop?
You want to put the loop into the mouseClick event?
@maumaumaumaumaumau yes I want it in the mouse click event
Did it work
nope, not really it ummm, keep give the currency nonstop, but did not do the transparency and the cancollide command