Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Charge = 0
- local Active = false
- function Input(plr,inp,on)
- if inp == "E" then
- if on then
- Active = true
- print("on")
- else
- Active = false
- print("off")
- end
- end
- end
- local Text = [[repeat wait(0.1) until script:FindFirstChildWhichIsA("RemoteEvent")
- local E = script:FindFirstChildWhichIsA("RemoteEvent")
- local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
- function InputBegan(Input,Text)
- if not Text then
- if Input.KeyCode == Enum.KeyCode.E then
- E:FireServer("E",true)
- end
- end
- end
- game:GetService("UserInputService").InputBegan:Connect(InputBegan)
- function InputEnded(Input,Text)
- if not Text then
- if Input.KeyCode == Enum.KeyCode.E then
- E:FireServer("E",false)
- end
- end
- end
- game:GetService("UserInputService").InputEnded:Connect(InputEnded)]]
- local Event = Instance.new("RemoteEvent",NLS(Text,owner.Character))
- Event.OnServerEvent:Connect(Input)
- while true do
- if Active then
- Charge = Charge + 1
- if Charge == 100 then
- owner.Character.Humanoid.WalkSpeed = 100
- owner.Character.Humanoid.MaxHealth = 1000
- owner.Character.Humanoid.Health = 1000
- owner.Character.Humanoid.JumpPower = 250
- end
- else
- Charge = 0
- end
- wait(0.05)
- end
Add Comment
Please, Sign In to add comment