Advertisement
teotv202

πŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠNani Punch ScriptπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘ŠπŸ‘Š

Aug 16th, 2018
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  5.  
  6. wait(0.2)
  7.  
  8. print([[
  9. (Keys)
  10. M - Mute/Play Music
  11. F - Energy Particles
  12.  
  13. K/L - Change the You Wa Shock song
  14. to either the new/old instrumental ver.
  15.  
  16. (Hold) Click - Hundred Crack Fist
  17. Q - Teleport
  18. Z - Tell those you've struck that
  19. they're already dead
  20. ]])
  21. player = game.Players.LocalPlayer
  22. mouse = player:GetMouse()
  23. chara = player.Character
  24. equipped = false
  25. del = false
  26. attacking = false
  27. atkd = false
  28. hum = chara:FindFirstChildOfClass("Humanoid")
  29. debby = game.Debris
  30. ws = 10
  31. hum.WalkSpeed = 19
  32.  
  33. ArtificialHB = Instance.new("BindableEvent", script)
  34. ArtificialHB.Name = "Heartbeat"
  35. script:WaitForChild("Heartbeat")
  36. frame = 0.03333333333333
  37. tf = 0
  38. allowframeloss = false
  39. tossremainder = false
  40. lastframe = tick()
  41. script.Heartbeat:Fire()
  42. game:GetService("RunService").Heartbeat:connect(function(s, p)
  43.   tf = tf + s
  44.   if tf >= frame then
  45.     if allowframeloss then
  46.       script.Heartbeat:Fire()
  47.       lastframe = tick()
  48.     else
  49.       for i = 1, math.floor(tf / frame) do
  50.         script.Heartbeat:Fire()
  51.       end
  52.       lastframe = tick()
  53.     end
  54.     if tossremainder then
  55.       tf = 0
  56.     else
  57.       tf = tf - frame * math.floor(tf / frame)
  58.     end
  59.   end
  60. end)
  61. function swait(num)
  62.   if num == 0 or num == nil then
  63.     ArtificialHB.Event:wait()
  64.   else
  65.     for i = 0, num*30 do
  66.       ArtificialHB.Event:wait()
  67.     end
  68.   end
  69. end
  70.  
  71. New = function(Object, Parent, Name, Data)
  72.     local Object = Instance.new(Object)
  73.     for Index, Value in pairs(Data or {}) do
  74.         Object[Index] = Value
  75.     end
  76.     Object.Parent = Parent
  77.     Object.Name = Name
  78.     return Object
  79. end
  80.  
  81. RightArm = New("Model",chara,"RightArm",{})
  82. MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  83. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  84. Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  85. Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  86. Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  87. LeftArm = New("Model",chara,"LeftArm",{})
  88. MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
  89. Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  90. EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Royal purple"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
  91. Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
  92. Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  93.  
  94. lach = LeftArm:GetChildren()
  95. rach = RightArm:GetChildren()
  96.  
  97. local pemit = Instance.new("ParticleEmitter")
  98. pemit.Name = "beter"
  99. pemit.Enabled = false
  100. pemit.LightEmission = 1
  101. pemit.Size = NumberSequence.new(1,0)
  102. pemit.Transparency = NumberSequence.new(0,1)
  103. pemit.Texture = "rbxassetid://745304849"
  104. pemit.Lifetime = NumberRange.new(.5)
  105. pemit.Acceleration = Vector3.new(0,20,0)
  106. pemit.Rate = 200
  107. pemit.Rotation = NumberRange.new(0,360)
  108. pemit.Speed = NumberRange.new(2)
  109. pemit.RotSpeed = NumberRange.new(100)
  110. pemit.VelocitySpread = 100
  111. pemit.ZOffset = -.5
  112.  
  113. for i, v in pairs(chara:GetChildren()) do
  114. if v ~= chara.HumanoidRootPart and v:IsA("BasePart") then
  115. pemit:Clone().Parent = v
  116. end
  117. if v.Name == "Chest" then
  118. for a, t in pairs(v:GetChildren()) do
  119. if t ~= v.MainPart and t ~= v.Tail then
  120. t:Destroy()
  121. end
  122. end
  123. end
  124. if v.Name == "FakeHeadM" then
  125. v.FakeHead.Normal.Texture = "http://www.roblox.com/asset/?id=1000657824"
  126. for a, t in pairs(v:GetChildren()) do
  127. if t.Name == "SpecPart" then
  128. t:Destroy()
  129. end
  130. end
  131. end
  132. end
  133.  
  134. ShadowHead = New("Part",chara,"ShadowHeads",{BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  135. Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.3, 1.5, 1.3),})
  136. Weld = New("ManualWeld",ShadowHead,"Weld",{Part0 = ShadowHead,Part1 = chara.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  137. ShadowHead.Transparency = 1
  138.  
  139. --LACM = New("CharacterMesh",chara,"LACM",{MeshId = "32328397",BodyPart = "LeftArm"})
  140. --LLCM = New("CharacterMesh",chara,"LLCM",{MeshId = "319336109",BodyPart = "LeftLeg"})
  141. --RACM = New("CharacterMesh",chara,"RACM",{MeshId = "32328563",BodyPart = "RightArm"})
  142. --RLCM = New("CharacterMesh",chara,"RLCM",{MeshId = "319336155",BodyPart = "RightLeg"})
  143. --TOCM = New("CharacterMesh",chara,"TOCM",{MeshId = "32328670",BodyPart = "Torso"})
  144.  
  145. --Sounds--
  146. function LoadSnd(id,loop,vol,pit)
  147. local snd = New("Sound",chara.Head,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  148. return snd
  149. end
  150. --AtataSnd = LoadSnd(130767866,false,1,1)
  151. --DeadSnd = LoadSnd(992192914,false,1,1)
  152. Music = LoadSnd(1072454168,true,1,1)
  153. Music.Parent = chara
  154.  
  155. --Play Sound in Part--
  156. function PlaySnd(snd,part,pitch,vol)
  157. local sound = Instance.new("Sound",part)
  158. sound.PlayOnRemove = true
  159. sound.SoundId = "rbxassetid://"..snd
  160. sound.PlaybackSpeed = pitch
  161. sound.Volume = vol
  162. sound:Destroy()
  163. end
  164.  
  165. function CamShake(par,magni,env,dur)
  166. coroutine.wrap(function()
  167. for i=0,dur*60 do
  168. swait()
  169. hum.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10)
  170. end
  171. hum.CameraOffset = Vector3.new(0,0,0)
  172. end)()
  173. end
  174.  
  175. --function PlaySnd2(snd,part)
  176. --local sound = snd:Clone()
  177. --sound.Parent = part
  178. --sound.PlayOnRemove = true
  179. --sound:Destroy()
  180. --end
  181.  
  182. maincol = "White"
  183.  
  184. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  185. local Att1 =  New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  186. local Att2 =  New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  187. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  188. return TEff
  189. end
  190.  
  191. RPunchT = CreateTrailObj(chara["Right Arm"],"White","White",0,0)
  192. LPunchT = CreateTrailObj(chara["Left Arm"],"White","White",0,0)
  193. RKickT = CreateTrailObj(chara["Right Leg"],"White","White",0,0)
  194. LKickT = CreateTrailObj(chara["Left Leg"],"White","White",0,0)
  195.  
  196. --Punch Hit Effect--
  197. function PunchEff(pos)
  198. local p = Instance.new("Part",game.Workspace)
  199. p.Size = Vector3.new(1,1,1)
  200. p.BrickColor = BrickColor.new(maincol)
  201. p.Material = "Neon"
  202. p.Anchored = true
  203. p.CanCollide = false
  204. p.CFrame = pos
  205. CamShake(p,10,.7,.1)
  206. local pm = Instance.new("SpecialMesh",p)
  207. pm.MeshType = "Sphere"
  208. coroutine.resume(coroutine.create(function()
  209. for i = 0,1,.05 do
  210. swait()
  211. p.Transparency = i
  212. pm.Scale = Vector3.new(2*i,2*i,2*i)
  213. end
  214. swait()
  215. p:Destroy()
  216. end))
  217. end
  218. function BigHitEff(pos)
  219. for i = 1, 5 do
  220. local p = Instance.new("Part",game.Workspace)
  221. p.Size = Vector3.new(1,1,1)
  222. p.BrickColor = BrickColor.new("White")
  223. p.Material = "Neon"
  224. p.Anchored = true
  225. p.CanCollide = false
  226. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  227. local pm = Instance.new("SpecialMesh",p)
  228. pm.MeshType = "Sphere"
  229. pm.Scale = Vector3.new(.5,0,.5)
  230. local disp = coroutine.wrap(function()
  231. for i = 0,1,.05 do
  232. swait()
  233. p.Transparency = i
  234. pm.Scale = Vector3.new(2*i,2*i,2*i)
  235. end
  236. swait()
  237. p:Destroy()
  238. end)
  239. disp()
  240. local p = Instance.new("Part",game.Workspace)
  241. p.Size = Vector3.new(1,1,1)
  242. p.BrickColor = BrickColor.new("White")
  243. p.Material = "Neon"
  244. p.Anchored = true
  245. p.CanCollide = false
  246. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  247. CamShake(p,10,1,.4)
  248. local pm = Instance.new("SpecialMesh",p)
  249. pm.MeshType = "Sphere"
  250. pm.Scale = Vector3.new(.5,.5,.5)
  251. local disp = coroutine.wrap(function()
  252. for i = 0,1,.05 do
  253. swait()
  254. p.Transparency = i
  255. pm.Scale = Vector3.new(.5*i,.5*i,.5*i)
  256. pm.Offset = Vector3.new(0,8*i,0)
  257. end
  258. swait()
  259. p:Destroy()
  260. end)
  261. disp()
  262. end
  263. end
  264.  
  265. --Damage Function--
  266. function dealdmg(dude)
  267. if dude ~= chara and dude:IsDescendantOf(chara) == false then
  268. if dude:FindFirstChild("IsAlreadyDead") == nil then
  269. local vall = Instance.new("ObjectValue",dude)
  270. vall.Name = "IsAlreadyDead"
  271. local faceg = Instance.new("BillboardGui",dude)
  272. faceg.Name = "IsAlreadyDeadBillBoardGui"
  273. faceg.Size = UDim2.new(4,0,4,0)
  274. faceg.Adornee = dude.Head
  275. faceg.StudsOffset = Vector3.new(0,5.5,0)
  276. local simgl = Instance.new("ImageLabel",faceg)
  277. simgl.Position = UDim2.new(0,0,0,0)
  278. simgl.Size = UDim2.new(1,0,1,0)
  279. simgl.Image = "http://www.roblox.com/asset/?id=47110473"
  280. simgl.BackgroundTransparency = 1
  281. end
  282. local vall = Instance.new("ObjectValue",dude)
  283. vall.Name = "IsHit"
  284. debby:AddItem(vall,.01)
  285. local bfos = Instance.new("BodyVelocity",dude.Head)
  286. bfos.P = 200000
  287. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  288. bfos.Velocity = Vector3.new(0,0,0) --+ chara.HumanoidRootPart.CFrame.lookVector * kbx
  289. game.Debris:AddItem(bfos,.5)
  290. end
  291. end
  292.  
  293. --Explode Hitbox--
  294. function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
  295. local E = Instance.new("Explosion")
  296. E.Position = pos
  297. E.Parent = game.Workspace
  298. E.BlastRadius = rad
  299. E.BlastPressure = 0
  300. E.Visible = false
  301. E.Hit:connect(function(hit)
  302. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  303. dealdmg(hit.Parent,damage,env,toim,kby,kbx)
  304. end
  305. end)
  306. end
  307. function PExHitbox()
  308. local E = Instance.new("Explosion",workspace)
  309. E.Position = chara.HumanoidRootPart.Position + chara.HumanoidRootPart.CFrame.lookVector*3
  310. E.BlastRadius = 1
  311. E.BlastPressure = 0
  312. E.Visible = false
  313. debby:AddItem(E,.05)
  314. E.Hit:connect(function(hit)
  315. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  316. if punchactive == true then
  317. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil and hit.Parent.Name ~= "Salvo_Starly" then
  318. dealdmg(hit.Parent)
  319. PlaySnd(386946017,hit.Parent.Head,math.random(8,12)/10,1)
  320. PunchEff(hit.CFrame + Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
  321. end
  322. end
  323. if hpunchactive == true then
  324. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent.Name ~= "Salvo_Starly" then
  325. dealdmg(hit.Parent)
  326. PlaySnd(200633636,hit.Parent.Head,1,1)
  327. BigHitEff(hit.CFrame)
  328. coroutine.resume(coroutine.create(function()
  329. if hit.Parent.Head:FindFirstChildOfClass("BodyVelocity") then
  330. hit.Parent.Head:FindFirstChildOfClass("BodyVelocity"):Destroy()
  331. end
  332. local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
  333. bfos.P = 100000
  334. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  335. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 100
  336. game.Debris:AddItem(bfos,.5)
  337. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  338. swait(2)
  339. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  340. end))
  341. end
  342. end
  343. end
  344. end)
  345. end
  346.  
  347. --Punch Touch--
  348. dela = .05
  349. punchactive = false
  350. function punchhit(hit)
  351. if punchactive == true then
  352. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  353. dealdmg(hit.Parent)
  354. PlaySnd(153092227,hit.Parent.Head,1,1)
  355. PunchEff(hit.CFrame)
  356. end
  357. end
  358. end
  359. Emit2Part.Touched:connect(punchhit)
  360. EmitPart.Touched:connect(punchhit)
  361.  
  362. --Chat Function--
  363. function chatfunc(text,dude)
  364. coroutine.resume(coroutine.create(function()
  365. if dude:FindFirstChild("TalkingBillBoard")~= nil then
  366. dude:FindFirstChild("TalkingBillBoard"):destroy()
  367. end
  368. local naeeym2 = Instance.new("BillboardGui",chara)
  369. naeeym2.Size = UDim2.new(0,100,0,40)
  370. naeeym2.StudsOffset = Vector3.new(0,3,0)
  371. naeeym2.Adornee = dude.Head
  372. naeeym2.Name = "TalkingBillBoard"
  373. local tecks2 = Instance.new("TextLabel",naeeym2)
  374. tecks2.BackgroundTransparency = 1
  375. tecks2.BorderSizePixel = 0
  376. tecks2.Text = ""
  377. tecks2.Font = "Fantasy"
  378. tecks2.FontSize = "Size24"
  379. tecks2.TextStrokeTransparency = 0
  380. tecks2.TextColor3 = Color3.new(1,1,1)
  381. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  382. tecks2.Size = UDim2.new(1,0,0.5,0)
  383. coroutine.resume(coroutine.create(function()
  384. for i = 1,string.len(text),1 do
  385. tecks2.Text = string.sub(text,1,i)
  386. swait(0.01)
  387. end
  388. swait(1)
  389. for i = 1, 5 do
  390. swait(.01)
  391. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  392. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  393. tecks2.TextTransparency = tecks2.TextTransparency + .2
  394. end
  395. naeeym2:Destroy()
  396. end))
  397. end))
  398. end
  399.  
  400. --function onChatted(msg)
  401. --chatfunc(msg,chara)
  402. --end
  403. --player.Chatted:connect(onChatted)
  404.  
  405. --Clerp Animations--
  406. TC = chara.HumanoidRootPart.RootJoint
  407. HC = chara.Torso.Neck
  408. RAC = chara.Torso["Right Shoulder"]
  409. LAC = chara.Torso["Left Shoulder"]
  410. RLC = chara.Torso["Right Hip"]
  411. LLC = chara.Torso["Left Hip"]
  412. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  413. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  414. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  415. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  416. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  417. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  418. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  419. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  420. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  421. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  422. grp = Instance.new("Model",chara)
  423. RW = nil
  424. LW = nil
  425. RLW = nil
  426. LLW = nil
  427.  
  428. function AddLegWelds()
  429. RLW = Instance.new("Weld",chara["Right Leg"])
  430. RLW.Part1 = HC.Parent
  431. RLW.Part0 = chara["Right Leg"]
  432. RLW.C0 = RLWF
  433. LLW = Instance.new("Weld",chara["Left Leg"])
  434. LLW.Part1 = HC.Parent
  435. LLW.Part0 = chara["Left Leg"]
  436. LLW.C0 = LLWF
  437. end
  438.  
  439. function AddArmWelds()
  440. RW = Instance.new("Weld",HC.Parent)
  441. RW.Part1 = HC.Parent
  442. RW.Part0 = chara["Right Arm"]
  443. RW.C0 = RWF
  444. LW = Instance.new("Weld",HC.Parent)
  445. LW.Part1 = HC.Parent
  446. LW.Part0 = chara["Left Arm"]
  447. LW.C0 = LWF
  448. end
  449.  
  450. function DestroyLegWelds()
  451. RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
  452. LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
  453. RLW:Destroy()
  454. LLW:Destroy()
  455. end
  456.  
  457. function DestroyArmWelds()
  458. RAC = New("Motor6D",chara.Torso,"Right Shoulder",{Part0 = chara.Torso,Part1 = chara["Right Arm"],C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)})
  459. LAC = New("Motor6D",chara.Torso,"Left Shoulder",{Part0 = chara.Torso,Part1 = chara["Left Arm"],C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)})
  460. RW:Destroy()
  461. LW:Destroy()
  462. end
  463.  
  464. function clerp(a,b,c)
  465. return a:lerp(b,c)
  466. end
  467.  
  468. ITCF = TCF
  469. IHCF = HCF
  470. IRWF = RWF
  471. ILWF = LWF
  472.  
  473. function res()
  474. TC.C0 = ITCF
  475. HC.C0 = IHCF
  476. end
  477. res()
  478.  
  479. --Teleport--
  480. function Teleport()
  481. PlaySnd(153613030,chara.Head,1,1)
  482. for i, v in pairs(chara:GetChildren()) do
  483. if v:IsA("BasePart") then
  484. local trace = Instance.new("Part",game.Workspace)
  485. trace.Size = v.Size
  486. trace.Position = v.Position
  487. trace.CFrame = v.CFrame
  488. trace.Anchored = true
  489. trace.CanCollide = false
  490. trace.BrickColor = BrickColor.new("White")
  491. trace.Material = "Neon"
  492. coroutine.resume(coroutine.create(function()
  493. for i = 0,1,.1 do
  494. swait()
  495. trace.Transparency = i
  496. end
  497. trace:Destroy()
  498. end))
  499. end
  500. end
  501. chara.Torso.CFrame = mouse.Hit + Vector3.new(0,3,0)
  502. end
  503.  
  504. --Keys--
  505. holdingdown = false
  506. function onButton1Down()
  507. holdingdown = true
  508. if del == false then
  509. del = true
  510. AddArmWelds()
  511. for i = 0,.6,.1 do
  512. swait()
  513. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,.6-i)
  514. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),0,0),IHCF,.6-i)
  515. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-20)),IRWF,.6-i)
  516. LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,.6-i)
  517. end
  518. punchactive = true
  519. local AtataSnd = LoadSnd(130767866,false,1,1)
  520. AtataSnd:Play() --PlaySnd(130767866,chara.Head,1,1)
  521. chatfunc("ATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATA",chara)
  522. local punches = 0
  523. repeat
  524. swait()
  525. RW.C0 = (RWF + Vector3.new(math.rad(-10,10),math.random(1,2),math.random(0,1))) * CFrame.fromEulerAnglesXYZ(math.rad(-100+math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15)))
  526. LW.C0 = (LWF + Vector3.new(math.rad(-10,10),math.random(1,2),math.random(0,1))) * CFrame.fromEulerAnglesXYZ(math.rad(-100+math.random(-15,15)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15)))
  527. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(math.random(-10,10)),0)
  528. coroutine.resume(coroutine.create(function()
  529. local part1 = Instance.new("Part",workspace)
  530. part1.Size = Vector3.new(1,2,1)
  531. part1.CanCollide = false
  532. part1.Anchored = true
  533. part1.BrickColor = chara["Right Arm"].BrickColor
  534. part1.CFrame = chara["Right Arm"].CFrame
  535. local part2 = Instance.new("Part",workspace)
  536. part2.Size = Vector3.new(1,2,1)
  537. part2.CanCollide = false
  538. part2.Anchored = true
  539. part2.BrickColor = chara["Left Arm"].BrickColor
  540. part2.CFrame = chara["Left Arm"].CFrame
  541. if chara:FindFirstChildOfClass("CharacterMesh") then
  542. local mh = Instance.new("SpecialMesh",part1)
  543. mh.MeshId = "rbxassetid://279174886"
  544. mh.Scale = Vector3.new(1.1,1.1,1.1)
  545. local mh = Instance.new("SpecialMesh",part2)
  546. mh.MeshId = "rbxassetid://279174949"
  547. mh.Scale = Vector3.new(1.1,1.1,1.1)
  548. end
  549. coroutine.resume(coroutine.create(function()
  550. for i = .4,1,.1 do
  551. swait()
  552. part1.Transparency = i
  553. part2.Transparency = i
  554. end
  555. part1:Destroy()
  556. part2:Destroy()
  557. end))
  558. end))
  559. PExHitbox()
  560. punches = punches + 1
  561. until holdingdown == false or punches >= 230
  562. punchactive = false
  563. LW.C0 = ILWF
  564. AtataSnd:Stop()
  565. AtataSnd.TimePosition = 7.5
  566. AtataSnd:Play()
  567. hpunchactive = true
  568. chatfunc("WATAU!",chara)
  569. for i = 0,.6,.2 do
  570. swait()
  571. TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),TCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),.6-i)
  572. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),.6-i)
  573. RW.C0 = clerp((RWF + Vector3.new(0,1,-1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),.6-i)
  574. end
  575. PExHitbox()
  576. swait()
  577. TC.C0 = (TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0)
  578. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0)
  579. RW.C0 = (RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0)
  580. swait(.2)
  581. hpunchactive = false
  582. punchactive = false
  583. swait(.5)
  584. for i = 0,.6,.1 do
  585. swait()
  586. TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),ITCF,.4+i)
  587. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),IHCF,.4+i)
  588. RW.C0 = clerp((RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),IRWF,.4+i)
  589. LW.C0 = ILWF
  590. end
  591. DestroyArmWelds()
  592. walking = false
  593. AtataSnd.TimePosition = 0
  594. debby:AddItem(AtataSnd,2)
  595. del = false
  596. end
  597. end
  598. function onButton2Down()
  599. if del == false then
  600. del = true
  601. AddArmWelds()
  602. ShadowHead.Transparency = 0
  603. for i = 0,.6,.05 do
  604. swait()
  605. TC.C0 = ITCF
  606. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.4+i)
  607. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  608. LW.C0 = ILWF
  609. end
  610. RW.C0 = (RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  611. local DeadSnd = LoadSnd(992192914,false,1,1)
  612. DeadSnd:Play() --PlaySnd(992192914,workspace,1,1)
  613. chatfunc("You are already dead",chara)
  614. swait(2.8)
  615. local dudes = {}
  616. for i, v in pairs(workspace:GetDescendants()) do
  617. if v:IsA("ObjectValue") and v.Name == "IsAlreadyDead" and v.Parent:FindFirstChildOfClass("Humanoid") then
  618. table.insert(dudes,v.Parent)
  619. end
  620. end
  621. if #dudes == 0 then
  622. DeadSnd:Destroy()
  623. end
  624. for no = 1, #dudes do
  625. coroutine.resume(coroutine.create(function()
  626. dudes[no].IsAlreadyDead:Destroy()
  627. dudes[no].IsAlreadyDeadBillBoardGui:Destroy()
  628. if dudes[no]:FindFirstChildOfClass("Humanoid").Health > 1 then
  629. chatfunc("What?!",dudes[no])
  630. end
  631. debby:AddItem(DeadSnd,6)
  632. swait(.5)
  633. for i, v in pairs(dudes[no]:GetChildren()) do
  634. if v:IsA("BasePart") then
  635. v.Anchored = true
  636. end
  637. end
  638. for oa = 1, 60 do
  639. local effp = Instance.new("Part",workspace)
  640. effp.CanCollide = false
  641. effp.BottomSurface = 0
  642. effp.TopSurface = 0
  643. effp.Size = Vector3.new(1,1,1)
  644. effp.Anchored = true
  645. effp.CFrame = (dudes[no].Head.CFrame * CFrame.new(0,-1.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,359)),math.rad(math.random(0,359)),math.rad(math.random(0,359)))
  646. effp.Material = "Neon"
  647. effp.BrickColor = BrickColor.new("White")
  648. local efm = Instance.new("BlockMesh",effp)
  649. CamShake(effp,20,.4,.1)
  650. coroutine.resume(coroutine.create(function()
  651. for a = 0,1,.05 do
  652. efm.Scale = Vector3.new(1-a,1000*a,1-a)
  653. effp.Transparency = a
  654. swait()
  655. end
  656. effp:Destroy()
  657. end))
  658. swait(.05)
  659. end
  660. dudes[no]:BreakJoints()
  661. for oa = 1, 5 do
  662. local effp = Instance.new("Part",workspace)
  663. effp.CanCollide = false
  664. effp.BottomSurface = 0
  665. effp.TopSurface = 0
  666. effp.Size = Vector3.new(1,1,1)
  667. effp.Anchored = true
  668. effp.CFrame = (dudes[no].Head.CFrame * CFrame.new(0,-1.5,0)) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,359)),math.rad(math.random(0,359)),math.rad(math.random(0,359)))
  669. effp.Material = "Neon"
  670. effp.BrickColor = BrickColor.new("White")
  671. local efm = Instance.new("BlockMesh",effp)
  672. CamShake(effp,20,1,.4)
  673. coroutine.resume(coroutine.create(function()
  674. for a = 0,1,.01 do
  675. efm.Scale = Vector3.new(2-a*2,1000*a,2-a*2)
  676. effp.Transparency = a
  677. swait()
  678. end
  679. effp:Destroy()
  680. end))
  681. end
  682. for i, v in pairs(dudes[no]:GetChildren()) do
  683. if v:IsA("BasePart") then
  684. v.Anchored = false
  685. end
  686. end
  687. for a, v in pairs(dudes[no]:GetChildren()) do
  688. if v:IsA("BasePart") then
  689. local bodpos = Instance.new("BodyPosition",v)
  690. bodpos.Position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  691. v.BrickColor = BrickColor.new("Really white")
  692. v.Material = "Neon"
  693. end
  694. end
  695. for d = 0,1,.1 do
  696. for i, v in pairs(dudes[no]:GetChildren()) do
  697. if v:IsA("BasePart") then
  698. v.Transparency = d
  699. swait()
  700. end
  701. end
  702. end
  703. for i, v in pairs(dudes[no]:GetChildren()) do
  704. if v:IsA("BasePart") then
  705. v:Destroy()
  706. end
  707. end
  708. end))
  709. end
  710. for i = 0,.6,.05 do
  711. swait()
  712. TC.C0 = ITCF
  713. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.6-i)
  714. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.6-i)
  715. LW.C0 = ILWF
  716. end
  717. ShadowHead.Transparency = 1
  718. DestroyArmWelds()
  719. walking = false
  720. del = false
  721. end
  722. end
  723.  
  724. rage = false
  725. if mouse then
  726. mouse.Button1Down:connect(onButton1Down)
  727. mouse.Button1Up:connect(function()
  728. holdingdown = false
  729. end)
  730. mouse.KeyDown:connect(function(key)
  731. if key == "z" then
  732. onButton2Down()
  733. elseif key == "f" then
  734. if rage == false then
  735. for i, v in pairs(chara:GetDescendants()) do
  736. if v.Name == "beter" then
  737. v.Enabled = true
  738. end
  739. end
  740. rage = true
  741. elseif rage == true then
  742. for i, v in pairs(chara:GetDescendants()) do
  743. if v.Name == "beter" then
  744. v.Enabled = false
  745. end
  746. end
  747. rage = false
  748. end
  749. elseif key == "q" then
  750. Teleport()
  751. elseif key == "m" then
  752. if Music.IsPlaying == true then
  753. Music:Stop()
  754. elseif Music.IsPlaying == false then
  755. Music:Play()
  756. end
  757. elseif key == "k" then
  758. Music.SoundId = "rbxassetid://548642448"
  759. elseif key == "l" then
  760. Music.SoundId = "rbxassetid://1072454168"
  761. end
  762. end)
  763. --mouse.KeyUp:connect(onKeyUp)
  764. end
  765.  
  766. --Loop Function--
  767. walking = false
  768. toim = 0
  769. while true do
  770. swait()
  771. hum.Name = "hoomanood"
  772. hum.Health = math.huge
  773. hum.MaxHealth = math.huge
  774. --if gkeydown == true then
  775. --coroutine.resume(coroutine.create(function()
  776. --onButton1Down()
  777. --end))
  778. --end
  779. toim = toim + .1
  780. if del == false then attacking = false elseif del == true then attacking = true end
  781. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  782. if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then
  783. for i = 0,1,.25 do
  784. swait()
  785. if del == false and attacking == false then
  786. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,i)
  787. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
  788. --RW.C0 = IRWF
  789. --LW.C0 = IRWF
  790. end
  791. end
  792. walking = false
  793. elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
  794. for i = 0,1,.25 do
  795. swait()
  796. if del == false and attacking == false then
  797. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,1-i)
  798. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,1-i)
  799. --RW.C0 = IRWF
  800. --LW.C0 = ILWF
  801. end
  802. end
  803. walking = true
  804. else
  805. end
  806. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement