Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --]]
- plr = game.Players.LocalPlayer
- function code()
- function Train()
- local plrN = game.Players.LocalPlayer.Name
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v.Name == "Rock Dummy" or v.Name == "Metal Dummy" or v.Name == "Wood Dummy" or v.Name == "Ice Dummy" or v.Name == "Giant Dummy" or v.Name == "Titan Dummy" and on == 1 then
- local Head = v.Head.CFrame
- local Name = v.Name
- local power = game.Players.LocalPlayer.Power.Value
- local power = power * 2
- wait()
- game.ReplicatedStorage.Logic.misc:FireServer(7, Workspace[plrN].Humanoid, 0)
- game.ReplicatedStorage.Logic.misc:FireServer(2, Workspace[plrN].Torso.woosh, 1)
- game.ReplicatedStorage.Logic.misc:FireServer(1, Workspace[plrN].Torso.woosh, 0)
- game.ReplicatedStorage.Logic.misc:FireServer(7, Workspace[plrN].Humanoid, 50)
- game.ReplicatedStorage.Logic.information:InvokeServer("Power")
- game.ReplicatedStorage.Logic.hitbox:InvokeServer(0, Workspace[plrN]["Right Arm"], Head, power, Workspace[plrN].Torso.voiceline, Workspace[Name].Humanoid)
- end
- end
- end
- function Tele()
- for i,v in pairs(game.Workspace:GetChildren()) do
- if v.ClassName == "Tool" then
- v.Handle.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- end
- end
- end
- while on == 1 do
- if on == 1 then
- Tele()
- Train()
- end
- end
- end
- a = 0
- on = 1
- local UIS = game:GetService("UserInputService")
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.F3 then
- on = 1
- wait(1)
- while on == 1 do
- game:GetService('RunService').Stepped:wait(0)
- code()
- end
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.F4 then
- on = 0
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.F5 then
- if a == 0 then
- OldPosition = plr.Character.HumanoidRootPart.CFrame
- plr.Character.HumanoidRootPart.CFrame = OldPosition
- a = 1
- elseif a == 1 then
- plr.Character.HumanoidRootPart.CFrame = OldPosition
- end
- end
- end)
- UIS.InputBegan:connect(function(Input)
- local KeyCode = Input.KeyCode
- if KeyCode == Enum.KeyCode.F6 then
- if a == 1 then
- a = 0
- end
- end
- end)
- --Description and controls at the top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement