Advertisement
SheeityArtist

Localized Hokuto

Jun 6th, 2018
18,879
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 28.40 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. 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=1188791280"
  167. local pan = Instance.new("Pants",chara)
  168. pan.PantsTemplate = "http://www.roblox.com/asset/?id=1188789468"
  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(130767866,false,1,1)
  178. --DeadSnd = LoadSnd(992192914,false,1,1)
  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 = "White"
  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"],"White","White",0,0)
  219. LPunchT = CreateTrailObj(chara["Left Arm"],"White","White",0,0)
  220. RKickT = CreateTrailObj(chara["Right Leg"],"White","White",0,0)
  221. LKickT = CreateTrailObj(chara["Left Leg"],"White","White",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("White")
  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("White")
  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. 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("White")
  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 AtataSnd = LoadSnd(130767866,false,1,1)
  547. AtataSnd:Play() --PlaySnd(130767866,chara.Head,1,1)
  548. chatfunc("ATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATATA",chara)
  549. local punches = 0
  550. repeat
  551. swait()
  552. 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)))
  553. 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)))
  554. TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(math.random(-10,10)),0)
  555. coroutine.resume(coroutine.create(function()
  556. local part1 = Instance.new("Part",workspace)
  557. part1.Size = Vector3.new(1,2,1)
  558. part1.CanCollide = false
  559. part1.Anchored = true
  560. part1.BrickColor = chara["Right Arm"].BrickColor
  561. part1.CFrame = chara["Right Arm"].CFrame
  562. local part2 = Instance.new("Part",workspace)
  563. part2.Size = Vector3.new(1,2,1)
  564. part2.CanCollide = false
  565. part2.Anchored = true
  566. part2.BrickColor = chara["Left Arm"].BrickColor
  567. part2.CFrame = chara["Left Arm"].CFrame
  568. if chara:FindFirstChildOfClass("CharacterMesh") then
  569. local mh = Instance.new("SpecialMesh",part1)
  570. mh.MeshId = "rbxassetid://279174886"
  571. mh.Scale = Vector3.new(1.1,1.1,1.1)
  572. local mh = Instance.new("SpecialMesh",part2)
  573. mh.MeshId = "rbxassetid://279174949"
  574. mh.Scale = Vector3.new(1.1,1.1,1.1)
  575. end
  576. coroutine.resume(coroutine.create(function()
  577. for i = .4,1,.1 do
  578. swait()
  579. part1.Transparency = i
  580. part2.Transparency = i
  581. end
  582. part1:Destroy()
  583. part2:Destroy()
  584. end))
  585. end))
  586. PExHitbox()
  587. punches = punches + 1
  588. until holdingdown == false or punches >= 230
  589. punchactive = false
  590. LW.C0 = ILWF
  591. AtataSnd:Stop()
  592. AtataSnd.TimePosition = 7.5
  593. AtataSnd:Play()
  594. hpunchactive = true
  595. chatfunc("WATAU!",chara)
  596. for i = 0,.6,.2 do
  597. swait()
  598. 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)
  599. 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)
  600. 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)
  601. end
  602. PExHitbox()
  603. swait()
  604. TC.C0 = (TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0)
  605. HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0)
  606. RW.C0 = (RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0)
  607. swait(.2)
  608. hpunchactive = false
  609. punchactive = false
  610. swait(.5)
  611. for i = 0,.6,.1 do
  612. swait()
  613. TC.C0 = clerp((TCF - Vector3.new(0,0,2)) * CFrame.fromEulerAnglesXYZ(math.rad(10),math.rad(-10),0),ITCF,.4+i)
  614. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-10),math.rad(10),0),IHCF,.4+i)
  615. RW.C0 = clerp((RWF + Vector3.new(0,1,1)) * CFrame.fromEulerAnglesXYZ(math.rad(-100),0,0),IRWF,.4+i)
  616. LW.C0 = ILWF
  617. end
  618. DestroyArmWelds()
  619. walking = false
  620. AtataSnd.TimePosition = 0
  621. debby:AddItem(AtataSnd,2)
  622. del = false
  623. end
  624. end
  625. function onButton2Down()
  626. if del == false then
  627. del = true
  628. AddArmWelds()
  629. ShadowHead.Transparency = 0
  630. for i = 0,.6,.05 do
  631. swait()
  632. TC.C0 = ITCF
  633. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.4+i)
  634. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
  635. LW.C0 = ILWF
  636. end
  637. RW.C0 = (RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  638. local DeadSnd = LoadSnd(992192914,false,1,1)
  639. DeadSnd:Play() --PlaySnd(992192914,workspace,1,1)
  640. chatfunc("You are already dead.",chara)
  641. swait(2.8)
  642. local dudes = {}
  643. for i, v in pairs(workspace:GetDescendants()) do
  644. if v:IsA("ObjectValue") and v.Name == "IsAlreadyDead" and v.Parent:FindFirstChildOfClass("Humanoid") then
  645. table.insert(dudes,v.Parent)
  646. end
  647. end
  648. if #dudes == 0 then
  649. DeadSnd:Destroy()
  650. end
  651. for no = 1, #dudes do
  652. coroutine.resume(coroutine.create(function()
  653. dudes[no].IsAlreadyDead:Destroy()
  654. dudes[no].IsAlreadyDeadBillBoardGui:Destroy()
  655. if dudes[no]:FindFirstChildOfClass("Humanoid").Health > 1 then
  656. chatfunc("What?!",dudes[no])
  657. end
  658. debby:AddItem(DeadSnd,6)
  659. swait(.5)
  660. for i, v in pairs(dudes[no]:GetChildren()) do
  661. if v:IsA("BasePart") then
  662. v.Anchored = true
  663. end
  664. end
  665. for oa = 1, 60 do
  666. local effp = Instance.new("Part",workspace)
  667. effp.CanCollide = false
  668. effp.BottomSurface = 0
  669. effp.TopSurface = 0
  670. effp.Size = Vector3.new(1,1,1)
  671. effp.Anchored = true
  672. 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)))
  673. effp.Material = "Neon"
  674. effp.BrickColor = BrickColor.new("White")
  675. local efm = Instance.new("BlockMesh",effp)
  676. CamShake(effp,20,.4,.1)
  677. coroutine.resume(coroutine.create(function()
  678. for a = 0,1,.05 do
  679. efm.Scale = Vector3.new(1-a,1000*a,1-a)
  680. effp.Transparency = a
  681. swait()
  682. end
  683. effp:Destroy()
  684. end))
  685. swait(.05)
  686. end
  687. dudes[no]:BreakJoints()
  688. for oa = 1, 5 do
  689. local effp = Instance.new("Part",workspace)
  690. effp.CanCollide = false
  691. effp.BottomSurface = 0
  692. effp.TopSurface = 0
  693. effp.Size = Vector3.new(1,1,1)
  694. effp.Anchored = true
  695. 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)))
  696. effp.Material = "Neon"
  697. effp.BrickColor = BrickColor.new("White")
  698. local efm = Instance.new("BlockMesh",effp)
  699. CamShake(effp,20,1,.4)
  700. coroutine.resume(coroutine.create(function()
  701. for a = 0,1,.01 do
  702. efm.Scale = Vector3.new(2-a*2,1000*a,2-a*2)
  703. effp.Transparency = a
  704. swait()
  705. end
  706. effp:Destroy()
  707. end))
  708. end
  709. for i, v in pairs(dudes[no]:GetChildren()) do
  710. if v:IsA("BasePart") then
  711. v.Anchored = false
  712. end
  713. end
  714. for a, v in pairs(dudes[no]:GetChildren()) do
  715. if v:IsA("BasePart") then
  716. local bodpos = Instance.new("BodyPosition",v)
  717. bodpos.Position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  718. v.BrickColor = BrickColor.new("Really white")
  719. v.Material = "Neon"
  720. end
  721. end
  722. for d = 0,1,.1 do
  723. for i, v in pairs(dudes[no]:GetChildren()) do
  724. if v:IsA("BasePart") then
  725. v.Transparency = d
  726. swait()
  727. end
  728. end
  729. end
  730. for i, v in pairs(dudes[no]:GetChildren()) do
  731. if v:IsA("BasePart") then
  732. v:Destroy()
  733. end
  734. end
  735. end))
  736. end
  737. for i = 0,.6,.05 do
  738. swait()
  739. TC.C0 = ITCF
  740. HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),.6-i)
  741. RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.5,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.6-i)
  742. LW.C0 = ILWF
  743. end
  744. ShadowHead.Transparency = 1
  745. DestroyArmWelds()
  746. walking = false
  747. del = false
  748. end
  749. end
  750.  
  751. rage = false
  752. if mouse then
  753. mouse.Button1Down:connect(onButton1Down)
  754. mouse.Button1Up:connect(function()
  755. holdingdown = false
  756. end)
  757. mouse.KeyDown:connect(function(key)
  758. if key == "z" then
  759. onButton2Down()
  760. elseif key == "f" then
  761. if rage == false then
  762. for i, v in pairs(chara:GetDescendants()) do
  763. if v.Name == "beter" then
  764. v.Enabled = true
  765. end
  766. end
  767. rage = true
  768. elseif rage == true then
  769. for i, v in pairs(chara:GetDescendants()) do
  770. if v.Name == "beter" then
  771. v.Enabled = false
  772. end
  773. end
  774. rage = false
  775. end
  776. elseif key == "q" then
  777. Teleport()
  778. elseif key == "m" then
  779. if Music.IsPlaying == true then
  780. Music:Stop()
  781. elseif Music.IsPlaying == false then
  782. Music:Play()
  783. end
  784. elseif key == "k" then
  785. Music.SoundId = "rbxassetid://548642448"
  786. elseif key == "l" then
  787. Music.SoundId = "rbxassetid://1072454168"
  788. end
  789. end)
  790. --mouse.KeyUp:connect(onKeyUp)
  791. end
  792.  
  793. --Loop Function--
  794. walking = false
  795. toim = 0
  796. while true do
  797. swait()
  798. hum.Name = "hoomanood"
  799. hum.Health = math.huge
  800. hum.MaxHealth = math.huge
  801. --if gkeydown == true then
  802. --coroutine.resume(coroutine.create(function()
  803. --onButton1Down()
  804. --end))
  805. --end
  806. toim = toim + .1
  807. if del == false then attacking = false elseif del == true then attacking = true end
  808. torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
  809. if torvel < 1 and walking == true and del == false and atkd == false and attacking == false then
  810. for i = 0,1,.25 do
  811. swait()
  812. if del == false and attacking == false then
  813. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,i)
  814. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,i)
  815. --RW.C0 = IRWF
  816. --LW.C0 = IRWF
  817. end
  818. end
  819. walking = false
  820. elseif torvel > 1 and walking == false and del == false and atkd == false and attacking == false then
  821. for i = 0,1,.25 do
  822. swait()
  823. if del == false and attacking == false then
  824. TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),ITCF,1-i)
  825. HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(10),0,0),IHCF,1-i)
  826. --RW.C0 = IRWF
  827. --LW.C0 = ILWF
  828. end
  829. end
  830. walking = true
  831. else
  832. end
  833. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement