PerpetualZblack

Untitled

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