Advertisement
Impatientz

fling punch

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