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
You're using a while wait loop. Instead use a while true loop.
while player.PlayerGui.ScreenGui:FindFirstChild("JumpPowerTextButton") do wait(.03125) player.PlayerGui.ScreenGui.JumpPowerTextButton.MouseButton1Down:connect(function() print("lol") end) end