TheUnknownDiscord

kaboom?

Sep 3rd, 2021 (edited)
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. local Charge = 0
  2. local Active = false
  3. function Input(plr,inp,on)
  4. if inp == "E" then
  5. if on then
  6. Active = true
  7. print("on")
  8. else
  9. Active = false
  10. print("off")
  11. end
  12. end
  13. end
  14. local Text = [[repeat wait(0.1) until script:FindFirstChildWhichIsA("RemoteEvent")
  15. local E = script:FindFirstChildWhichIsA("RemoteEvent")
  16. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  17. function InputBegan(Input,Text)
  18. if not Text then
  19. if Input.KeyCode == Enum.KeyCode.E then
  20. E:FireServer("E",true)
  21. end
  22. end
  23. end
  24. game:GetService("UserInputService").InputBegan:Connect(InputBegan)
  25. function InputEnded(Input,Text)
  26. if not Text then
  27. if Input.KeyCode == Enum.KeyCode.E then
  28. E:FireServer("E",false)
  29. end
  30. end
  31. end
  32. game:GetService("UserInputService").InputEnded:Connect(InputEnded)]]
  33. local Event = Instance.new("RemoteEvent",NLS(Text,owner.Character))
  34. Event.OnServerEvent:Connect(Input)
  35. while true do
  36. if Active then
  37. Charge = Charge + 1
  38. if Charge == 100 then
  39. owner.Character.Humanoid.WalkSpeed = 100
  40. owner.Character.Humanoid.MaxHealth = 1000
  41. owner.Character.Humanoid.Health = 1000
  42. owner.Character.Humanoid.JumpPower = 250
  43. end
  44. else
  45. Charge = 0
  46. end
  47. wait(0.05)
  48. end
Add Comment
Please, Sign In to add comment