SheeityArtist

HOKUTO, NO SHINKEN!

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