sawgamer1

Untitled

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