Advertisement
Guest User

Untitled

a guest
Jul 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1.  
  2. --]]
  3. plr = game.Players.LocalPlayer
  4. function code()
  5. function Train()
  6. local plrN = game.Players.LocalPlayer.Name
  7. for i,v in pairs(game.Workspace:GetChildren()) do
  8. 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
  9. local Head = v.Head.CFrame
  10. local Name = v.Name
  11. local power = game.Players.LocalPlayer.Power.Value
  12. local power = power * 2
  13. wait()
  14. game.ReplicatedStorage.Logic.misc:FireServer(7, Workspace[plrN].Humanoid, 0)
  15. game.ReplicatedStorage.Logic.misc:FireServer(2, Workspace[plrN].Torso.woosh, 1)
  16. game.ReplicatedStorage.Logic.misc:FireServer(1, Workspace[plrN].Torso.woosh, 0)
  17. game.ReplicatedStorage.Logic.misc:FireServer(7, Workspace[plrN].Humanoid, 50)
  18. game.ReplicatedStorage.Logic.information:InvokeServer("Power")
  19. game.ReplicatedStorage.Logic.hitbox:InvokeServer(0, Workspace[plrN]["Right Arm"], Head, power, Workspace[plrN].Torso.voiceline, Workspace[Name].Humanoid)
  20. end
  21. end
  22. end
  23.  
  24. function Tele()
  25. for i,v in pairs(game.Workspace:GetChildren()) do
  26. if v.ClassName == "Tool" then
  27. v.Handle.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  28. end
  29. end
  30. end
  31.  
  32. while on == 1 do
  33. if on == 1 then
  34. Tele()
  35. Train()
  36. end
  37. end
  38. end
  39. a = 0
  40. on = 1
  41. local UIS = game:GetService("UserInputService")
  42. UIS.InputBegan:connect(function(Input)
  43. local KeyCode = Input.KeyCode
  44. if KeyCode == Enum.KeyCode.F3 then
  45. on = 1
  46. wait(1)
  47. while on == 1 do
  48. game:GetService('RunService').Stepped:wait(0)
  49. code()
  50. end
  51. end
  52. end)
  53. UIS.InputBegan:connect(function(Input)
  54. local KeyCode = Input.KeyCode
  55. if KeyCode == Enum.KeyCode.F4 then
  56. on = 0
  57. end
  58. end)
  59. UIS.InputBegan:connect(function(Input)
  60. local KeyCode = Input.KeyCode
  61. if KeyCode == Enum.KeyCode.F5 then
  62. if a == 0 then
  63. OldPosition = plr.Character.HumanoidRootPart.CFrame
  64. plr.Character.HumanoidRootPart.CFrame = OldPosition
  65. a = 1
  66. elseif a == 1 then
  67. plr.Character.HumanoidRootPart.CFrame = OldPosition
  68. end
  69. end
  70. end)
  71. UIS.InputBegan:connect(function(Input)
  72. local KeyCode = Input.KeyCode
  73. if KeyCode == Enum.KeyCode.F6 then
  74. if a == 1 then
  75. a = 0
  76. end
  77. end
  78. end)
  79. --Description and controls at the top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement