Advertisement
Scorpion2

Puppa shrek

Jun 20th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.56 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.Cylinder,})
  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.Cylinder,})
  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://349165228"
  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=768305933"
  167. local pan = Instance.new("Pants",chara)
  168. pan.PantsTemplate = "http://www.roblox.com/asset/?id=763474606"
  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. --AtataSnd = LoadSnd(889016272,false,1,1)
  178. --DeadSnd = LoadSnd(966269704,false,1,1)
  179. Music = LoadSnd(1920192068,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 = "Royal purple"
  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"],"Royal purple","Royal purple",0,0)
  219. LPunchT = CreateTrailObj(chara["Left Arm"],"Royal purple","Royal purple",0,0)
  220. RKickT = CreateTrailObj(chara["Right Leg"],"Royal purple","Royal purple",0,0)
  221. LKickT = CreateTrailObj(chara["Left Leg"],"Royal purple","Royal purple",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 = "Cylinder"
  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("Royal purple")
  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 = "Cylinder"
  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("Royal purple")
  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 = "Cylinder"
  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. PlaySnd(153092227,hit.Parent.Head,1,1)
  382. PunchEff(hit.CFrame)
  383. end
  384. end
  385. end
  386. Emit2Part.Touched:connect(punchhit)
  387. EmitPart.Touched:connect(punchhit)
  388.  
  389. --Chat Function--
  390. function chatfunc(text,dude)
  391. coroutine.resume(coroutine.create(function()
  392. if dude:FindFirstChild("TalkingBillBoard")~= nil then
  393. dude:FindFirstChild("TalkingBillBoard"):destroy()
  394. end
  395. local naeeym2 = Instance.new("BillboardGui",chara)
  396. naeeym2.Size = UDim2.new(0,100,0,40)
  397. naeeym2.StudsOffset = Vector3.new(0,3,0)
  398. naeeym2.Adornee = dude.Head
  399. naeeym2.Name = "TalkingBillBoard"
  400. local tecks2 = Instance.new("TextLabel",naeeym2)
  401. tecks2.BackgroundTransparency = 1
  402. tecks2.BorderSizePixel = 0
  403. tecks2.Text = ""
  404. tecks2.Font = "Fantasy"
  405. tecks2.FontSize = "Size24"
  406. tecks2.TextStrokeTransparency = 0
  407. tecks2.TextColor3 = Color3.new(1,1,1)
  408. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  409. tecks2.Size = UDim2.new(1,0,0.5,0)
  410. coroutine.resume(coroutine.create(function()
  411. for i = 1,string.len(text),1 do
  412. tecks2.Text = string.sub(text,1,i)
  413. swait(0.01)
  414. end
  415. swait(1)
  416. for i = 1, 5 do
  417. swait(.01)
  418. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  419. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  420. tecks2.TextTransparency = tecks2.TextTransparency + .2
  421. end
  422. naeeym2:Destroy()
  423. end))
  424. end))
  425. end
  426.  
  427. --function onChatted(msg)
  428. --chatfunc(msg,chara)
  429. --end
  430. --player.Chatted:connect(onChatted)
  431.  
  432. --Clerp Animations--
  433. TC = chara.HumanoidRootPart.RootJoint
  434. HC = chara.Torso.Neck
  435. RAC = chara.Torso["Right Shoulder"]
  436. LAC = chara.Torso["Left Shoulder"]
  437. RLC = chara.Torso["Right Hip"]
  438. LLC = chara.Torso["Left Hip"]
  439. TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  440. HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  441. RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  442. LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  443. RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  444. LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  445. RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  446. LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  447. RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  448. LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  449. grp = Instance.new("Model",chara)
  450. RW = nil
  451. LW = nil
  452. RLW = nil
  453. LLW = nil
  454.  
  455. function AddLegWelds()
  456. RLW = Instance.new("Weld",chara["Right Leg"])
  457. RLW.Part1 = HC.Parent
  458. RLW.Part0 = chara["Right Leg"]
  459. RLW.C0 = RLWF
  460. LLW = Instance.new("Weld",chara["Left Leg"])
  461. LLW.Part1 = HC.Parent
  462. LLW.Part0 = chara["Left Leg"]
  463. LLW.C0 = LLWF
  464. end
  465.  
  466. function AddArmWelds()
  467. RW = Instance.new("Weld",HC.Parent)
  468. RW.Part1 = HC.Parent
  469. RW.Part0 = chara["Right Arm"]
  470. RW.C0 = RWF
  471. LW = Instance.new("Weld",HC.Parent)
  472. LW.Part1 = HC.Parent
  473. LW.Part0 = chara["Left Arm"]
  474. LW.C0 = LWF
  475. end
  476.  
  477. function DestroyLegWelds()
  478. 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),})
  479. 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),})
  480. RLW:Destroy()
  481. LLW:Destroy()
  482. end
  483.  
  484. function DestroyArmWelds()
  485. 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)})
  486. 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)})
  487. RW:Destroy()
  488. LW:Destroy()
  489. end
  490.  
  491. function clerp(a,b,c)
  492. return a:lerp(b,c)
  493. end
  494.  
  495. ITCF = TCF
  496. IHCF = HCF
  497. IRWF = RWF
  498. ILWF = LWF
  499.  
  500. function res()
  501. TC.C0 = ITCF
  502. HC.C0 = IHCF
  503. end
  504. res()
  505.  
  506. --Teleport--
  507. function Teleport()
  508. PlaySnd(153613030,chara.Head,1,1)
  509. for i, v in pairs(chara:GetChildren()) do
  510. if v:IsA("BasePart") then
  511. local trace = Instance.new("Part",game.Workspace)
  512. trace.Size = v.Size
  513. trace.Position = v.Position
  514. trace.CFrame = v.CFrame
  515. trace.Anchored = true
  516. trace.CanCollide = false
  517. trace.BrickColor = BrickColor.new("Royal purple")
  518. trace.Material = "Neon"
  519. coroutine.resume(coroutine.create(function()
  520. for i = 0,1,.1 do
  521. swait()
  522. trace.Transparency = i
  523. end
  524. trace:Destroy()
  525. end))
  526. end
  527. end
  528. chara.Torso.CFrame = mouse.Hit + Vector3.new(0,3,0)
  529. end
  530.  
  531. --Keys--
  532. holdingdown = false
  533. function onButton1Down()
  534. holdingdown = true
  535. if del == false then
  536. del = true
  537. AddArmWelds()
  538. for i = 0,.6,.1 do
  539. swait()
  540. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,.6-i)
  541. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),0,0),IHCF,.6-i)
  542. RW.C0 = clerp(RWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-20)),IRWF,.6-i)
  543. LW.C0 = clerp(LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,.6-i)
  544. end
  545. punchactive = true
  546. local Endingurb = LoadSnd(1259054947,false,3,1)
  547. local AtataSnd = LoadSnd(889016272,false,1,1)
  548. AtataSnd:Play() --PlaySnd(889016272,chara.Head,1,1)
  549. chatfunc(".................................RAWAWAWAWAWAWAWAWAWAWWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWAWWAWAWAWAWAWAWAWAWAWARRRRrrrr",chara)
  550. local punches = 0
  551. repeat
  552. swait()
  553. 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)))
  554. 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)))
  555. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(math.random(-10,10)),0)
  556. coroutine.resume(coroutine.create(function()
  557. local part1 = Instance.new("Part",workspace)
  558. part1.Size = Vector3.new(1,2,1)
  559. part1.CanCollide = false
  560. part1.Anchored = true
  561. part1.BrickColor = chara["Right Arm"].BrickColor
  562. part1.CFrame = chara["Right Arm"].CFrame
  563. local part2 = Instance.new("Part",workspace)
  564. part2.Size = Vector3.new(1,2,1)
  565. part2.CanCollide = false
  566. part2.Anchored = true
  567. part2.BrickColor = chara["Left Arm"].BrickColor
  568. part2.CFrame = chara["Left Arm"].CFrame
  569. if chara:FindFirstChildOfClass("CharacterMesh") then
  570. local mh = Instance.new("SpecialMesh",part1)
  571. mh.MeshId = "rbxassetid://279174886"
  572. mh.Scale = Vector3.new(1.1,1.1,1.1)
  573. local mh = Instance.new("SpecialMesh",part2)
  574. mh.MeshId = "rbxassetid://279174949"
  575. mh.Scale = Vector3.new(1.1,1.1,1.1)
  576. end
  577. coroutine.resume(coroutine.create(function()
  578. for i = .4,1,.1 do
  579. swait()
  580. part1.Transparency = i
  581. part2.Transparency = i
  582. end
  583. part1:Destroy()
  584. part2:Destroy()
  585. end))
  586. end))
  587. PExHitbox()
  588. punches = punches + 1
  589. until holdingdown == false or punches >= 230
  590. punchactive = false
  591. LW.C0 = ILWF
  592.  
  593. AtataSnd:Stop()
  594. Endingurb:Play()
  595. hpunchactive = true
  596. chatfunc("*Insert insane punch sound here*",chara)
  597. for i = 0,.6,.2 do
  598. swait()
  599. 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)
  600. 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)
  601. 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)
  602. end
  603. PExHitbox()
  604. swait()
  605. TC.C0 = (TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0)
  606. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0)
  607. RW.C0 = (RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0)
  608. swait(.2)
  609. hpunchactive = false
  610. punchactive = false
  611. swait(.5)
  612. for i = 0,.6,.1 do
  613. swait()
  614. TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),ITCF,.4+i)
  615. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),IHCF,.4+i)
  616. RW.C0 = clerp((RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),IRWF,.4+i)
  617. LW.C0 = ILWF
  618. end
  619. DestroyArmWelds()
  620. walking = false
  621. AtataSnd.TimePosition = 0
  622. debby:AddItem(AtataSnd,2)
  623. del = false
  624. end
  625. end
  626. function onButton2Down()
  627. if del == false then
  628. del = true
  629. AddArmWelds()
  630. ShadowHead.Transparency = 0
  631. for i = 0,.6,.05 do
  632. swait()
  633. TC.C0 = ITCF
  634. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.4+i)
  635. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  636. LW.C0 = ILWF
  637. end
  638. RW.C0 = (RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  639. local DeadSnd = LoadSnd(966269704,false,1,1)
  640. DeadSnd:Play() --PlaySnd(966269704,workspace,1,1)
  641. chatfunc("A peaceful world has no need for humans... Youre Pointless!",chara)
  642. swait(2.8)
  643. local dudes = {}
  644. for i, v in pairs(workspace:GetDescendants()) do
  645. if v:IsA("ObjectValue") and v.Name == "IsAlreadyDead" and v.Parent:FindFirstChildOfClass("Humanoid") then
  646. table.insert(dudes,v.Parent)
  647. end
  648. end
  649. if #dudes == 0 then
  650. DeadSnd:Destroy()
  651. end
  652. for no = 1, #dudes do
  653. coroutine.resume(coroutine.create(function()
  654. dudes[no].IsAlreadyDead:Destroy()
  655. dudes[no].IsAlreadyDeadBillBoardGui:Destroy()
  656. if dudes[no]:FindFirstChildOfClass("Humanoid").Health > 1 then
  657. chatfunc("Uh oh",dudes[no])
  658. end
  659. debby:AddItem(DeadSnd,6)
  660. swait(.5)
  661. for i, v in pairs(dudes[no]:GetChildren()) do
  662. if v:IsA("BasePart") then
  663. v.Anchored = true
  664. end
  665. end
  666. for oa = 1, 60 do
  667. local effp = Instance.new("Part",workspace)
  668. effp.CanCollide = false
  669. effp.BottomSurface = 0
  670. effp.TopSurface = 0
  671. effp.Size = Vector3.new(1,1,1)
  672. effp.Anchored = true
  673. 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)))
  674. effp.Material = "Neon"
  675. effp.BrickColor = BrickColor.new("Royal purple")
  676. local efm = Instance.new("BlockMesh",effp)
  677. CamShake(effp,20,.4,.1)
  678. coroutine.resume(coroutine.create(function()
  679. for a = 0,1,.05 do
  680. efm.Scale = Vector3.new(1-a,1000*a,1-a)
  681. effp.Transparency = a
  682. swait()
  683. end
  684. effp:Destroy()
  685. end))
  686. swait(.05)
  687. end
  688. dudes[no]:BreakJoints()
  689. for oa = 1, 5 do
  690. local effp = Instance.new("Part",workspace)
  691. effp.CanCollide = false
  692. effp.BottomSurface = 0
  693. effp.TopSurface = 0
  694. effp.Size = Vector3.new(1,1,1)
  695. effp.Anchored = true
  696. 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)))
  697. effp.Material = "Neon"
  698. effp.BrickColor = BrickColor.new("Royal purple")
  699. local efm = Instance.new("BlockMesh",effp)
  700. CamShake(effp,20,1,.4)
  701. coroutine.resume(coroutine.create(function()
  702. for a = 0,1,.01 do
  703. efm.Scale = Vector3.new(2-a*2,1000*a,2-a*2)
  704. effp.Transparency = a
  705. swait()
  706. end
  707. effp:Destroy()
  708. end))
  709. end
  710. for i, v in pairs(dudes[no]:GetChildren()) do
  711. if v:IsA("BasePart") then
  712. v.Anchored = false
  713. end
  714. end
  715. for a, v in pairs(dudes[no]:GetChildren()) do
  716. if v:IsA("BasePart") then
  717. local bodpos = Instance.new("BodyPosition",v)
  718. bodpos.Position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  719. v.BrickColor = BrickColor.new("Royal purple")
  720. v.Material = "Neon"
  721. end
  722. end
  723. for d = 0,1,.1 do
  724. for i, v in pairs(dudes[no]:GetChildren()) do
  725. if v:IsA("BasePart") then
  726. v.Transparency = d
  727. swait()
  728. end
  729. end
  730. end
  731. for i, v in pairs(dudes[no]:GetChildren()) do
  732. if v:IsA("BasePart") then
  733. v:Destroy()
  734. end
  735. end
  736. end))
  737. end
  738. for i = 0,.6,.05 do
  739. swait()
  740. TC.C0 = ITCF
  741. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.6-i)
  742. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.6-i)
  743. LW.C0 = ILWF
  744. end
  745. ShadowHead.Transparency = 1
  746. DestroyArmWelds()
  747. walking = false
  748. del = false
  749. end
  750. end
  751.  
  752. rage = false
  753. if mouse then
  754. mouse.Button1Down:connect(onButton1Down)
  755. mouse.Button1Up:connect(function()
  756. holdingdown = false
  757. end)
  758. mouse.KeyDown:connect(function(key)
  759. if key == "z" then
  760. onButton2Down()
  761. elseif key == "f" then
  762. if rage == false then
  763. for i, v in pairs(chara:GetDescendants()) do
  764. if v.Name == "beter" then
  765. v.Enabled = true
  766. end
  767. end
  768. rage = true
  769. elseif rage == true then
  770. for i, v in pairs(chara:GetDescendants()) do
  771. if v.Name == "beter" then
  772. v.Enabled = false
  773. end
  774. end
  775. rage = false
  776. end
  777. elseif key == "q" then
  778. Teleport()
  779. elseif key == "m" then
  780. if Music.IsPlaying == true then
  781. Music:Stop()
  782. elseif Music.IsPlaying == false then
  783. Music:Play()
  784. end
  785. elseif key == "k" then
  786. Music.SoundId = "rbxassetid://1920192068"
  787. elseif key == "l" then
  788. Music.SoundId = "rbxassetid://1920192068"
  789. end
  790. end)
  791. --mouse.KeyUp:connect(onKeyUp)
  792. end
  793.  
  794. --Loop Function--
  795. walking = false
  796. toim = 0
  797. while true do
  798. swait()
  799. hum.Name = "hoomanood"
  800. hum.Health = math.huge
  801. hum.MaxHealth = math.huge
  802. --if gkeydown == true then
  803. --coroutine.resume(coroutine.create(function()
  804. --onButton1Down()
  805. --end))
  806. --end
  807. toim = toim + .1
  808. if del == false then attacking = false elseif del == true then attacking = true end
  809. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  810. if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then
  811. for i = 0,1,.25 do
  812. swait()
  813. if del == false and attacking == false then
  814. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,i)
  815. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
  816. --RW.C0 = IRWF
  817. --LW.C0 = IRWF
  818. end
  819. end
  820. walking = false
  821. elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
  822. for i = 0,1,.25 do
  823. swait()
  824. if del == false and attacking == false then
  825. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,1-i)
  826. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,1-i)
  827. --RW.C0 = IRWF
  828. --LW.C0 = ILWF
  829. end
  830. end
  831. walking = true
  832. else
  833. end
  834. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement