I would like to make this script about giving strength even faster to achieve so people wouldn't have to wait so much. I can only put a wait() script, but how can I remove it and not make this script wait in 0 seconds? (local script)
local savedStrengthValue = 0
local strengthValue = 0
script.Parent.MouseButton1Click:Connect(function()
savedStrengthValue = tonumber(script.Parent.StrengthVal.Text)
strengthValue = strengthValue + savedStrengthValue
repeat
game.ReplicatedStorage.remotes.lifts.CustomLift:FireServer(game.Players.LocalPlayer)
strengthValue = strengthValue - 1
wait()
until strengthValue == 0
end)
Please fix this.

1 comment
I know that I can use RunService:RenderStepped but there is a MouseButton1Click function above it and I can't break out of the loop.