Didn't really know how to word the title :P
Anyway, now I can explain what I mean. So, I'm really to make a loop that's stating "if the mouse's button is pressed down, then do this." I'm not sure if there are simpler ways Roblox has made, but these are the ways I've been trying to get around it.
power = script.Parent.Parent:FindFirstChild("Power")
check = false
script.Parent.MouseButton1Down:connect(function()
check = true
end)
script.Parent.MouseButton1Up:connect(function()
check = false
end)
while check == true do
power.Value = power.Value - 0.5
wait(0.25)
end
But really, it won't even enter the while loop. Any ways on fixing this, or a different way of doing it?
