wait(0.01) local enabled = true Player = game.Players.LocalPlayer character = Player.Character mouse = Player:GetMouse() run = game:GetService("RunService") Humanoid = Player.Character.Humanoid Nen = Player.Nen function Charging(key) key = key:lower() if key == "0" then if Nen.Value <= 100 then Nen.Value = Nen.Value +1 end end end mouse.KeyDown:connect(Charging)
If i hold left shift how do i make it go up by 1 every second that i hold shift down?
mouse.KeyDown:connect(function(key) keysDown[key:lower()] = true end) mouse.KeyUp:connect(function(key) keysDown[key:lower()] = false end)
use this to let the script know when you're not holding shift down
How to add +1
while wait(.1) do if Nen.Value <= 100 then Nen.Value = Nen.Value +1 end end