Advertisement
2AreYouMental110

Punch Ui V2

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