Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.84 KB | None | 0 0
  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. local billboardgui = game:GetService("ServerStorage")
  131. game.Players.PlayerAdded:Connect(function(player)
  132. if player.name.player.CharacterAdded:Connect(function(char) = "sussano1245" then
  133. local clonedgui = billboardgui:Clone()
  134. clonedgui.Parent = game.Workspace[player.Name].head
  135. clonedgui.TextLabel = "Hokuto Succesor"
  136. clonedgui.TextLabel.TextColor3 = Color3.fromRGB(255,255,255)
  137. end
  138. end
  139.  
  140. for i, v in pairs(chara:GetChildren()) do
  141. if v ~= chara.HumanoidRootPart and v:IsA("BasePart") then
  142. pemit:Clone().Parent = v
  143. end
  144. if v:IsA("ShirtGraphic") or v:IsA("Shirt") or v:IsA("Pants") then
  145. v:Destroy()
  146. end
  147. if v.Name == "Chest" then
  148. for a, t in pairs(v:GetChildren()) do
  149. if t ~= v.MainPart and t ~= v.Tail then
  150. t:Destroy()
  151. end
  152. end
  153. end
  154. if v.Name == "FakeHeadM" then
  155. v.FakeHead.Normal.Texture = "http://www.roblox.com/asset/?id=1000657824"
  156. for a, t in pairs(v:GetChildren()) do
  157. if t.Name == "SpecPart" then
  158. t:Destroy()
  159. end
  160. end
  161. end
  162. end
  163.  
  164. 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),})
  165. Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.3, 1.5, 1.3),})
  166. 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),})
  167. ShadowHead.Transparency = 1
  168.  
  169. --LACM = New("CharacterMesh",chara,"LACM",{MeshId = "32328397",BodyPart = "LeftArm"})
  170. --LLCM = New("CharacterMesh",chara,"LLCM",{MeshId = "319336109",BodyPart = "LeftLeg"})
  171. --RACM = New("CharacterMesh",chara,"RACM",{MeshId = "32328563",BodyPart = "RightArm"})
  172. --RLCM = New("CharacterMesh",chara,"RLCM",{MeshId = "319336155",BodyPart = "RightLeg"})
  173. --TOCM = New("CharacterMesh",chara,"TOCM",{MeshId = "32328670",BodyPart = "Torso"})
  174.  
  175. local shi = Instance.new("Shirt",chara)
  176. shi.ShirtTemplate = "http://www.roblox.com/asset/?id=1188791280"
  177. local pan = Instance.new("Pants",chara)
  178. pan.PantsTemplate = "http://www.roblox.com/asset/?id=1188789468"
  179. local gshi = Instance.new("ShirtGraphic",nil)
  180. gshi.Graphic = "http://www.roblox.com/asset/?id=114844135"
  181.  
  182. --Sounds--
  183. function LoadSnd(id,loop,vol,pit)
  184. local snd = New("Sound",chara.Head,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
  185. return snd
  186. end
  187. --AtataSnd = LoadSnd(130767866,false,1,1)
  188. --DeadSnd = LoadSnd(992192914,false,1,1)
  189. Music = LoadSnd(1072454168,true,1,1)
  190. Music.Parent = chara
  191.  
  192. --Play Sound in Part--
  193. function PlaySnd(snd,part,pitch,vol)
  194. local sound = Instance.new("Sound",part)
  195. sound.PlayOnRemove = true
  196. sound.SoundId = "rbxassetid://"..snd
  197. sound.PlaybackSpeed = pitch
  198. sound.Volume = vol
  199. sound:Destroy()
  200. end
  201.  
  202. function CamShake(par,magni,env,dur)
  203. coroutine.wrap(function()
  204. for i=0,dur*60 do
  205. swait()
  206. 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)
  207. end
  208. hum.CameraOffset = Vector3.new(0,0,0)
  209. end)()
  210. end
  211.  
  212. --function PlaySnd2(snd,part)
  213. --local sound = snd:Clone()
  214. --sound.Parent = part
  215. --sound.PlayOnRemove = true
  216. --sound:Destroy()
  217. --end
  218.  
  219. maincol = "White"
  220.  
  221. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  222. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  223. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  224. 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})
  225. return TEff
  226. end
  227.  
  228. RPunchT = CreateTrailObj(chara["Right Arm"],"White","White",0,0)
  229. LPunchT = CreateTrailObj(chara["Left Arm"],"White","White",0,0)
  230. RKickT = CreateTrailObj(chara["Right Leg"],"White","White",0,0)
  231. LKickT = CreateTrailObj(chara["Left Leg"],"White","White",0,0)
  232.  
  233. --Punch Hit Effect--
  234. function PunchEff(pos)
  235. local p = Instance.new("Part",game.Workspace)
  236. p.Size = Vector3.new(1,1,1)
  237. p.BrickColor = BrickColor.new(maincol)
  238. p.Material = "Neon"
  239. p.Anchored = true
  240. p.CanCollide = false
  241. p.CFrame = pos
  242. CamShake(p,10,.7,.1)
  243. local pm = Instance.new("SpecialMesh",p)
  244. pm.MeshType = "Sphere"
  245. coroutine.resume(coroutine.create(function()
  246. for i = 0,1,.05 do
  247. swait()
  248. p.Transparency = i
  249. pm.Scale = Vector3.new(2*i,2*i,2*i)
  250. end
  251. swait()
  252. p:Destroy()
  253. end))
  254. end
  255. function BigHitEff(pos)
  256. for i = 1, 5 do
  257. local p = Instance.new("Part",game.Workspace)
  258. p.Size = Vector3.new(1,1,1)
  259. p.BrickColor = BrickColor.new("White")
  260. p.Material = "Neon"
  261. p.Anchored = true
  262. p.CanCollide = false
  263. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  264. local pm = Instance.new("SpecialMesh",p)
  265. pm.MeshType = "Sphere"
  266. pm.Scale = Vector3.new(.5,0,.5)
  267. local disp = coroutine.wrap(function()
  268. for i = 0,1,.05 do
  269. swait()
  270. p.Transparency = i
  271. pm.Scale = Vector3.new(2*i,2*i,2*i)
  272. end
  273. swait()
  274. p:Destroy()
  275. end)
  276. disp()
  277. local p = Instance.new("Part",game.Workspace)
  278. p.Size = Vector3.new(1,1,1)
  279. p.BrickColor = BrickColor.new("White")
  280. p.Material = "Neon"
  281. p.Anchored = true
  282. p.CanCollide = false
  283. p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
  284. CamShake(p,10,1,.4)
  285. local pm = Instance.new("SpecialMesh",p)
  286. pm.MeshType = "Sphere"
  287. pm.Scale = Vector3.new(.5,.5,.5)
  288. local disp = coroutine.wrap(function()
  289. for i = 0,1,.05 do
  290. swait()
  291. p.Transparency = i
  292. pm.Scale = Vector3.new(.5*i,.5*i,.5*i)
  293. pm.Offset = Vector3.new(0,8*i,0)
  294. end
  295. swait()
  296. p:Destroy()
  297. end)
  298. disp()
  299. end
  300. end
  301.  
  302. --Damage Function--
  303. function dealdmg(dude)
  304. if dude ~= chara and dude:IsDescendantOf(chara) == false then
  305. if dude:FindFirstChild("IsAlreadyDead") == nil then
  306. local vall = Instance.new("ObjectValue",dude)
  307. vall.Name = "IsAlreadyDead"
  308. local faceg = Instance.new("BillboardGui",dude)
  309. faceg.Name = "IsAlreadyDeadBillBoardGui"
  310. faceg.Size = UDim2.new(4,0,4,0)
  311. faceg.Adornee = dude.Head
  312. faceg.StudsOffset = Vector3.new(0,5.5,0)
  313. local simgl = Instance.new("ImageLabel",faceg)
  314. simgl.Position = UDim2.new(0,0,0,0)
  315. simgl.Size = UDim2.new(1,0,1,0)
  316. simgl.Image = "http://www.roblox.com/asset/?id=47110473"
  317. simgl.BackgroundTransparency = 1
  318. end
  319. local vall = Instance.new("ObjectValue",dude)
  320. vall.Name = "IsHit"
  321. debby:AddItem(vall,.01)
  322. local bfos = Instance.new("BodyVelocity",dude.Head)
  323. bfos.P = 200000
  324. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  325. bfos.Velocity = Vector3.new(0,0,0) --+ chara.HumanoidRootPart.CFrame.lookVector * kbx
  326. game.Debris:AddItem(bfos,.5)
  327. end
  328. end
  329.  
  330. --Explode Hitbox--
  331. function ExHitbox(rad,pos,damage,env,toim,kby,kbx)
  332. local E = Instance.new("Explosion")
  333. E.Position = pos
  334. E.Parent = game.Workspace
  335. E.BlastRadius = rad
  336. E.BlastPressure = 0
  337. E.Visible = false
  338. E.Hit:connect(function(hit)
  339. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  340. dealdmg(hit.Parent,damage,env,toim,kby,kbx)
  341. end
  342. end)
  343. end
  344. function PExHitbox()
  345. local E = Instance.new("Explosion",workspace)
  346. E.Position = chara.HumanoidRootPart.Position + chara.HumanoidRootPart.CFrame.lookVector*3
  347. E.BlastRadius = 1
  348. E.BlastPressure = 0
  349. E.Visible = false
  350. debby:AddItem(E,.05)
  351. E.Hit:connect(function(hit)
  352. if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil then
  353. if punchactive == true then
  354. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil and hit.Parent.Name ~= "Salvo_Starly" then
  355. dealdmg(hit.Parent)
  356. PlaySnd(386946017,hit.Parent.Head,math.random(8,12)/10,1)
  357. PunchEff(hit.CFrame + Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)))
  358. end
  359. end
  360. if hpunchactive == true then
  361. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent.Name ~= "Salvo_Starly" then
  362. dealdmg(hit.Parent)
  363. PlaySnd(200633636,hit.Parent.Head,1,1)
  364. BigHitEff(hit.CFrame)
  365. coroutine.resume(coroutine.create(function()
  366. if hit.Parent.Head:FindFirstChildOfClass("BodyVelocity") then
  367. hit.Parent.Head:FindFirstChildOfClass("BodyVelocity"):Destroy()
  368. end
  369. local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
  370. bfos.P = 100000
  371. bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
  372. bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 100
  373. game.Debris:AddItem(bfos,.5)
  374. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  375. swait(2)
  376. hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  377. end))
  378. end
  379. end
  380. end
  381. end)
  382. end
  383.  
  384. --Punch Touch--
  385. dela = .05
  386. punchactive = false
  387. function punchhit(hit)
  388. if punchactive == true then
  389. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
  390. dealdmg(hit.Parent)
  391. PlaySnd(153092227,hit.Parent.Head,1,1)
  392. PunchEff(hit.CFrame)
  393. end
  394. end
  395. end
  396. Emit2Part.Touched:connect(punchhit)
  397. EmitPart.Touched:connect(punchhit)
  398.  
  399. --Chat Function--
  400. function chatfunc(text,dude)
  401. coroutine.resume(coroutine.create(function()
  402. if dude:FindFirstChild("TalkingBillBoard")~= nil then
  403. dude:FindFirstChild("TalkingBillBoard"):destroy()
  404. end
  405. local naeeym2 = Instance.new("BillboardGui",chara)
  406. naeeym2.Size = UDim2.new(0,100,0,40)
  407. naeeym2.StudsOffset = Vector3.new(0,3,0)
  408. naeeym2.Adornee = dude.Head
  409. naeeym2.Name = "TalkingBillBoard"
  410. local tecks2 = Instance.new("TextLabel",naeeym2)
  411. tecks2.BackgroundTransparency = 1
  412. tecks2.BorderSizePixel = 0
  413. tecks2.Text = ""
  414. tecks2.Font = "Fantasy"
  415. tecks2.FontSize = "Size24"
  416. tecks2.TextStrokeTransparency = 0
  417. tecks2.TextColor3 = Color3.new(1,1,1)
  418. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  419. tecks2.Size = UDim2.new(1,0,0.5,0)
  420. coroutine.resume(coroutine.create(function()
  421. for i = 1,string.len(text),1 do
  422. tecks2.Text = string.sub(text,1,i)
  423. swait(0.01)
  424. end
  425. swait(1)
  426. for i = 1, 5 do
  427. swait(.01)
  428. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  429. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  430. tecks2.TextTransparency = tecks2.TextTransparency + .2
  431. end
  432. naeeym2:Destroy()
  433. end))
  434. end))
  435. end
  436.  
  437. --function onChatted(msg)
  438. --chatfunc(msg,chara)
  439. --end
  440. --player.Chatted:connect(onChatted)
  441.  
  442. --Clerp Animations--
  443. TC = chara.HumanoidRootPart.RootJoint
  444. HC = chara.Torso.Neck
  445. RAC = chara.Torso["Right Shoulder"]
  446. LAC = chara.Torso["Left Shoulder"]
  447. RLC = chara.Torso["Right Hip"]
  448. LLC = chara.Torso["Left Hip"]
  449. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  450. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  451. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  452. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  453. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  454. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  455. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  456. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  457. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  458. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  459. grp = Instance.new("Model",chara)
  460. RW = nil
  461. LW = nil
  462. RLW = nil
  463. LLW = nil
  464.  
  465. function AddLegWelds()
  466. RLW = Instance.new("Weld",chara["Right Leg"])
  467. RLW.Part1 = HC.Parent
  468. RLW.Part0 = chara["Right Leg"]
  469. RLW.C0 = RLWF
  470. LLW = Instance.new("Weld",chara["Left Leg"])
  471. LLW.Part1 = HC.Parent
  472. LLW.Part0 = chara["Left Leg"]
  473. LLW.C0 = LLWF
  474. end
  475.  
  476. function AddArmWelds()
  477. RW = Instance.new("Weld",HC.Parent)
  478. RW.Part1 = HC.Parent
  479. RW.Part0 = chara["Right Arm"]
  480. RW.C0 = RWF
  481. LW = Instance.new("Weld",HC.Parent)
  482. LW.Part1 = HC.Parent
  483. LW.Part0 = chara["Left Arm"]
  484. LW.C0 = LWF
  485. end
  486.  
  487. function DestroyLegWelds()
  488. 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),})
  489. 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),})
  490. RLW:Destroy()
  491. LLW:Destroy()
  492. end
  493.  
  494. function DestroyArmWelds()
  495. 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)})
  496. 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)})
  497. RW:Destroy()
  498. LW:Destroy()
  499. end
  500.  
  501. function clerp(a,b,c)
  502. return a:lerp(b,c)
  503. end
  504.  
  505. ITCF = TCF
  506. IHCF = HCF
  507. IRWF = RWF
  508. ILWF = LWF
  509.  
  510. function res()
  511. TC.C0 = ITCF
  512. HC.C0 = IHCF
  513. end
  514. res()
  515.  
  516. --Teleport--
  517. function Teleport()
  518. PlaySnd(153613030,chara.Head,1,1)
  519. for i, v in pairs(chara:GetChildren()) do
  520. if v:IsA("BasePart") then
  521. local trace = Instance.new("Part",game.Workspace)
  522. trace.Size = v.Size
  523. trace.Position = v.Position
  524. trace.CFrame = v.CFrame
  525. trace.Anchored = true
  526. trace.CanCollide = false
  527. trace.BrickColor = BrickColor.new("White")
  528. trace.Material = "Neon"
  529. coroutine.resume(coroutine.create(function()
  530. for i = 0,1,.1 do
  531. swait()
  532. trace.Transparency = i
  533. end
  534. trace:Destroy()
  535. end))
  536. end
  537. end
  538. chara.Torso.CFrame = mouse.Hit + Vector3.new(0,3,0)
  539. end
  540.  
  541. --Keys--
  542. holdingdown = false
  543. function onButton1Down()
  544. holdingdown = true
  545. if del == false then
  546. del = true
  547. AddArmWelds()
  548. for i = 0,.6,.1 do
  549. swait()
  550. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,.6-i)
  551. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),0,0),IHCF,.6-i)
  552. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-20)),IRWF,.6-i)
  553. LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,.6-i)
  554. end
  555. punchactive = true
  556. local AtataSnd = LoadSnd(130767866,false,1,1)
  557. AtataSnd:Play() --PlaySnd(130767866,chara.Head,1,1)
  558. chatfunc("ATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATA",chara)
  559. local punches = 0
  560. repeat
  561. swait()
  562. 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)))
  563. 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)))
  564. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(math.random(-10,10)),0)
  565. coroutine.resume(coroutine.create(function()
  566. local part1 = Instance.new("Part",workspace)
  567. part1.Size = Vector3.new(1,2,1)
  568. part1.CanCollide = false
  569. part1.Anchored = true
  570. part1.BrickColor = chara["Right Arm"].BrickColor
  571. part1.CFrame = chara["Right Arm"].CFrame
  572. local part2 = Instance.new("Part",workspace)
  573. part2.Size = Vector3.new(1,2,1)
  574. part2.CanCollide = false
  575. part2.Anchored = true
  576. part2.BrickColor = chara["Left Arm"].BrickColor
  577. part2.CFrame = chara["Left Arm"].CFrame
  578. if chara:FindFirstChildOfClass("CharacterMesh") then
  579. local mh = Instance.new("SpecialMesh",part1)
  580. mh.MeshId = "rbxassetid://279174886"
  581. mh.Scale = Vector3.new(1.1,1.1,1.1)
  582. local mh = Instance.new("SpecialMesh",part2)
  583. mh.MeshId = "rbxassetid://279174949"
  584. mh.Scale = Vector3.new(1.1,1.1,1.1)
  585. end
  586. coroutine.resume(coroutine.create(function()
  587. for i = .4,1,.1 do
  588. swait()
  589. part1.Transparency = i
  590. part2.Transparency = i
  591. end
  592. part1:Destroy()
  593. part2:Destroy()
  594. end))
  595. end))
  596. PExHitbox()
  597. punches = punches + 1
  598. until holdingdown == false or punches >= 230
  599. punchactive = false
  600. LW.C0 = ILWF
  601. AtataSnd:Stop()
  602. AtataSnd.TimePosition = 7.5
  603. AtataSnd:Play()
  604. hpunchactive = true
  605. chatfunc("WATAU!",chara)
  606. for i = 0,.6,.2 do
  607. swait()
  608. 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)
  609. 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)
  610. 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)
  611. end
  612. PExHitbox()
  613. swait()
  614. TC.C0 = (TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0)
  615. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0)
  616. RW.C0 = (RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0)
  617. swait(.2)
  618. hpunchactive = false
  619. punchactive = false
  620. swait(.5)
  621. for i = 0,.6,.1 do
  622. swait()
  623. TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),ITCF,.4+i)
  624. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),IHCF,.4+i)
  625. RW.C0 = clerp((RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),IRWF,.4+i)
  626. LW.C0 = ILWF
  627. end
  628. DestroyArmWelds()
  629. walking = false
  630. AtataSnd.TimePosition = 0
  631. debby:AddItem(AtataSnd,2)
  632. del = false
  633. end
  634. end
  635. function onButton2Down()
  636. if del == false then
  637. del = true
  638. AddArmWelds()
  639. ShadowHead.Transparency = 0
  640. for i = 0,.6,.05 do
  641. swait()
  642. TC.C0 = ITCF
  643. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.4+i)
  644. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  645. LW.C0 = ILWF
  646. end
  647. RW.C0 = (RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  648. local DeadSnd = LoadSnd(992192914,false,1,1)
  649. DeadSnd:Play() --PlaySnd(992192914,workspace,1,1)
  650. chatfunc("You are already dead.",chara)
  651. swait(2.8)
  652. local dudes = {}
  653. for i, v in pairs(workspace:GetDescendants()) do
  654. if v:IsA("ObjectValue") and v.Name == "IsAlreadyDead" and v.Parent:FindFirstChildOfClass("Humanoid") then
  655. table.insert(dudes,v.Parent)
  656. end
  657. end
  658. if #dudes == 0 then
  659. DeadSnd:Destroy()
  660. end
  661. for no = 1, #dudes do
  662. coroutine.resume(coroutine.create(function()
  663. dudes[no].IsAlreadyDead:Destroy()
  664. dudes[no].IsAlreadyDeadBillBoardGui:Destroy()
  665. if dudes[no]:FindFirstChildOfClass("Humanoid").Health > 1 then
  666. chatfunc("What?!",dudes[no])
  667. end
  668. debby:AddItem(DeadSnd,6)
  669. swait(.5)
  670. for i, v in pairs(dudes[no]:GetChildren()) do
  671. if v:IsA("BasePart") then
  672. v.Anchored = true
  673. end
  674. end
  675. for oa = 1, 60 do
  676. local effp = Instance.new("Part",workspace)
  677. effp.CanCollide = false
  678. effp.BottomSurface = 0
  679. effp.TopSurface = 0
  680. effp.Size = Vector3.new(1,1,1)
  681. effp.Anchored = true
  682. 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)))
  683. effp.Material = "Neon"
  684. effp.BrickColor = BrickColor.new("White")
  685. local efm = Instance.new("BlockMesh",effp)
  686. CamShake(effp,20,.4,.1)
  687. coroutine.resume(coroutine.create(function()
  688. for a = 0,1,.05 do
  689. efm.Scale = Vector3.new(1-a,1000*a,1-a)
  690. effp.Transparency = a
  691. swait()
  692. end
  693. effp:Destroy()
  694. end))
  695. swait(.05)
  696. end
  697. dudes[no]:BreakJoints()
  698. for oa = 1, 5 do
  699. local effp = Instance.new("Part",workspace)
  700. effp.CanCollide = false
  701. effp.BottomSurface = 0
  702. effp.TopSurface = 0
  703. effp.Size = Vector3.new(1,1,1)
  704. effp.Anchored = true
  705. 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)))
  706. effp.Material = "Neon"
  707. effp.BrickColor = BrickColor.new("White")
  708. local efm = Instance.new("BlockMesh",effp)
  709. CamShake(effp,20,1,.4)
  710. coroutine.resume(coroutine.create(function()
  711. for a = 0,1,.01 do
  712. efm.Scale = Vector3.new(2-a*2,1000*a,2-a*2)
  713. effp.Transparency = a
  714. swait()
  715. end
  716. effp:Destroy()
  717. end))
  718. end
  719. for i, v in pairs(dudes[no]:GetChildren()) do
  720. if v:IsA("BasePart") then
  721. v.Anchored = false
  722. end
  723. end
  724. for a, v in pairs(dudes[no]:GetChildren()) do
  725. if v:IsA("BasePart") then
  726. local bodpos = Instance.new("BodyPosition",v)
  727. bodpos.Position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  728. v.BrickColor = BrickColor.new("Really white")
  729. v.Material = "Neon"
  730. end
  731. end
  732. for d = 0,1,.1 do
  733. for i, v in pairs(dudes[no]:GetChildren()) do
  734. if v:IsA("BasePart") then
  735. v.Transparency = d
  736. swait()
  737. end
  738. end
  739. end
  740. for i, v in pairs(dudes[no]:GetChildren()) do
  741. if v:IsA("BasePart") then
  742. v:Destroy()
  743. end
  744. end
  745. end))
  746. end
  747. for i = 0,.6,.05 do
  748. swait()
  749. TC.C0 = ITCF
  750. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.6-i)
  751. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.6-i)
  752. LW.C0 = ILWF
  753. end
  754. ShadowHead.Transparency = 1
  755. DestroyArmWelds()
  756. walking = false
  757. del = false
  758. end
  759. end
  760.  
  761. rage = false
  762. if mouse then
  763. mouse.Button1Down:connect(onButton1Down)
  764. mouse.Button1Up:connect(function()
  765. holdingdown = false
  766. end)
  767. mouse.KeyDown:connect(function(key)
  768. if key == "z" then
  769. onButton2Down()
  770. elseif key == "f" then
  771. if rage == false then
  772. for i, v in pairs(chara:GetDescendants()) do
  773. if v.Name == "beter" then
  774. v.Enabled = true
  775. end
  776. end
  777. rage = true
  778. elseif rage == true then
  779. for i, v in pairs(chara:GetDescendants()) do
  780. if v.Name == "beter" then
  781. v.Enabled = false
  782. end
  783. end
  784. rage = false
  785. end
  786. elseif key == "q" then
  787. Teleport()
  788. elseif key == "m" then
  789. if Music.IsPlaying == true then
  790. Music:Stop()
  791. elseif Music.IsPlaying == false then
  792. Music:Play()
  793. end
  794. elseif key == "k" then
  795. Music.SoundId = "rbxassetid://548642448"
  796. elseif key == "l" then
  797. Music.SoundId = "rbxassetid://1072454168"
  798. end
  799. end)
  800. --mouse.KeyUp:connect(onKeyUp)
  801. end
  802.  
  803. --Loop Function--
  804. walking = false
  805. toim = 0
  806. while true do
  807. swait()
  808. hum.Name = "hoomanood"
  809. hum.Health = math.huge
  810. hum.MaxHealth = math.huge
  811. --if gkeydown == true then
  812. --coroutine.resume(coroutine.create(function()
  813. --onButton1Down()
  814. --end))
  815. --end
  816. toim = toim + .1
  817. if del == false then attacking = false elseif del == true then attacking = true end
  818. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  819. if torvel < 1 and walking == true 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,i)
  824. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
  825. --RW.C0 = IRWF
  826. --LW.C0 = IRWF
  827. end
  828. end
  829. walking = false
  830. elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
  831. for i = 0,1,.25 do
  832. swait()
  833. if del == false and attacking == false then
  834. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,1-i)
  835. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,1-i)
  836. --RW.C0 = IRWF
  837. --LW.C0 = ILWF
  838. end
  839. end
  840. walking = true
  841. else
  842. end
  843. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement