Why is "lol" printed a lot more than 1 time like over 100 times, and how do you make it so it only prints once? It has to stay in the loop so it can check for the button.
while wait(0.03125) do
if player.PlayerGui.ScreenGui:FindFirstChild("JumpPowerTextButton") then
player.PlayerGui.ScreenGui.JumpPowerTextButton.MouseButton1Down:connect(function()
print("lol")
end)
end
end

1 comment
While wait runs the script every .03125 seconds whether or not the if then statement returns true.