Advertisement
RedoGaming

fe punch

Sep 25th, 2020 (edited)
73,111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. -- V2 FE KILL Punch Made by gabkiu Discord:Gab#4074, updated with the UI lib that I made.
  2. local Classes = loadstring(game:HttpGet('https://pastebin.com/raw/2muvijsJ',true))()
  3.  
  4. local Tab = Classes.Tab(game.CoreGui)
  5.  
  6. local Enabled_Box = Classes.Checkbox(Tab,true)
  7. local Anim_Box = Classes.Checkbox(Tab,true)
  8. local Kill_Box = Classes.Checkbox(Tab,true)
  9. local Power_Label = Classes.Label(Tab)
  10. local Power_Slider = Classes.Slider(Tab)
  11. local Punch_Text = Classes.TextBox(Tab)
  12.  
  13. local Keys = {
  14. Punch = "f",
  15. Previous_Mode = "z",
  16. Next_Mode = "x",
  17. }
  18.  
  19. Tab.Titulo.Text = "Punch UI v2"
  20.  
  21. Enabled_Box.Titulo.Text = "Punch Enabled"
  22. Anim_Box.Titulo.Text = "Animations"
  23. Kill_Box.Titulo.Text = "Kill Cam"
  24.  
  25. Power_Slider:SetarMaximo(50000)
  26. Power_Slider:SetarIntervalo(10)
  27. Power_Slider:SetarPadrao(30000)
  28.  
  29. Punch_Text.Titulo.Text = "Punch Key"
  30. Punch_Text.Box.Text = Keys.Punch
  31. Punch_Text.Mudou = function(Valor)
  32. Punch_Key = Valor
  33. end
  34. Power_Slider.Mudou = function(Valor)
  35. local Txt = "Power: " .. Valor
  36. if Valor >= 49000 then
  37. Txt = "Power: INF"
  38. end
  39. Power_Label.Text = Txt
  40. end
  41. Power_Label.Text = "Power: " .. 25000
  42. Punch_Text.Box:GetPropertyChangedSignal("Text"):Connect(function()
  43. wait()
  44. local txt = Punch_Text.Box.Text
  45. if txt:len() > 1 then
  46. Punch_Text.Box.Text = txt:sub(2,2)
  47. end
  48. Keys.Punch = Punch_Text.Box.Text:lower()
  49. end)
  50. local Player = game:GetService("Players").LocalPlayer
  51. local Mouse = Player:GetMouse()
  52. local StarterGui = game:GetService("StarterGui")
  53. local Character = Player.Character or workspace:WaitForChild(Player.Name)
  54. local CAM = false
  55. local GuiHidden = false
  56. local PunchingEnabled = true
  57. local AnimationsId = {
  58. R6 = "rbxassetid://204062532",
  59. R15 = "rbxassetid://846744780"
  60. }
  61. local function NewAnimation(ID)
  62. local Animation = Instance.new("Animation")
  63. Animation.AnimationId = ID
  64. return Animation
  65. end
  66. local R15Animation = NewAnimation(AnimationsId.R15)
  67. local R6Animation = NewAnimation(AnimationsId.R6)
  68.  
  69. local function GetAnimation(Humanoid)
  70. if Humanoid.RigType == Enum.HumanoidRigType.R15 then
  71. return Humanoid:LoadAnimation(R15Animation)
  72. else
  73. return Humanoid:LoadAnimation(R6Animation)
  74. end
  75. end
  76. local keysf = {
  77. "Push","Fling","Kill","Void"
  78. }
  79. local function UpdateText()
  80. MLabel.Text = keysf[Current_Mode]
  81. end
  82. local CamIN = false
  83. local function DoCam(Part)
  84. CamIN = true
  85. local Camera = workspace.CurrentCamera
  86. Camera.CameraSubject = Part
  87. wait(1.85)
  88. Camera.CameraSubject = Player.Character:FindFirstChild("Head")
  89. CamIN = false
  90. end
  91. local Punching = false
  92. local function Punch()
  93. if not Enabled_Box.Estado then
  94. return
  95. end
  96. if Punching then
  97. return
  98. end
  99. Punching = true
  100. local Humanoid = Character.Humanoid
  101. local RootPart = Character.PrimaryPart
  102. Humanoid:UnequipTools()
  103. Player.Character.Humanoid:ChangeState(11)
  104. wait()
  105. local Tool = Player.Backpack:FindFirstChildOfClass("Tool")
  106. if Tool == nil then
  107. local Args = {
  108. Title = "PUNCH SCRIPT",
  109. Text = "ERROR, You need a tool.",
  110. Icon = "http://www.roblox.com/asset/?id=41363725",
  111. Duration = 7,
  112. }
  113. StarterGui:SetCore("SendNotification",Args)
  114. return
  115. end
  116. local AnimationId
  117. local AnimationTrack = GetAnimation(Humanoid)
  118. if Anim_Box.Estado then
  119. AnimationTrack:Play()
  120. end
  121. wait()
  122. Player.Character.Humanoid:ChangeState(11)
  123. local OriginalGrip = Tool.GripPos
  124. Tool.Parent = Player.Character
  125. local Power = Power_Slider.Valor
  126. local PowerY = Power/2
  127. if Power == 50000 then
  128. Power = math.huge
  129. PowerY = math.huge
  130. end
  131. Tool.GripPos = Vector3.new(Power,PowerY,Power)
  132. wait(0.35)
  133.  
  134. Tool.GripPos = OriginalGrip
  135. game.Players.LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  136. wait()
  137. Punching = false
  138. end
  139. local function Next_Mode()
  140. local Next = Current_Mode + 1
  141. if Next > #Power_Modes then
  142. Current_Mode = 1
  143. else
  144. Current_Mode = Next
  145. end
  146. UpdateText()
  147. end
  148. local DownKeys = {}
  149. local function KeyDown(Key)
  150. if Key == Keys.Punch then
  151. Punch()
  152. end
  153. end
  154. Mouse.KeyDown:Connect(KeyDown)
  155. local function hand(what)
  156. if game:GetService("Players"):GetPlayerFromCharacter(what.Parent) then
  157. if Kill_Box.Estado and Punching and not CamIN then
  158. DoCam(what.Parent:FindFirstChild("Head") or what)
  159. end
  160. end
  161. end
  162. Player.CharacterAdded:Connect(function()
  163. Character = Player.Character
  164. wait(1)
  165. local Hand = Character:FindFirstChild("RightHand") or Character:FindFirstChild("Right Arm")
  166. if Hand then
  167. Hand.Touched:Connect(hand)
  168. end
  169. end)
  170. wait()
  171. local Hand = Character:FindFirstChild("RightHand") or Character:FindFirstChild("Right Arm")
  172. if Hand then
  173. Hand.Touched:Connect(hand)
  174. end
  175. game:GetService("RunService").RenderStepped:Connect(function()
  176. if Punching then
  177. Player.Character.Humanoid:ChangeState(11)
  178. end
  179. end)
  180. game:GetService("StarterGui"):SetCore("SendNotification",{Title = "SCRIPT",Text = "By Gab#4074 press J to hide!",Duration = 12})
  181. Character.Animate.toolnone.ToolNoneAnim.AnimationId = "000000"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement