Advertisement
lafur

Untitled

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