Advertisement
GojiGaming1337

Untitled

May 20th, 2018
400
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.51 KB | None | 0 0
  1. print([[
  2. ___________________________________
  3.  
  4. Kyutatsuki13's Chara script
  5. Build 0002
  6. Don't even mind why I did this, it was a challenge !
  7.  
  8. ___________________________________
  9. ]])
  10.  
  11.  
  12. warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
  13.  
  14. local p = game:GetService("Players").LocalPlayer
  15. local char = p.Character
  16. local mouse = p:GetMouse()
  17. local larm = char:WaitForChild("Left Arm")
  18. local rarm = char:WaitForChild("Right Arm")
  19. local lleg = char:WaitForChild("Left Leg")
  20. local rleg = char:WaitForChild("Right Leg")
  21. local hed = char:WaitForChild("Head")
  22. local torso = char:WaitForChild("Torso")
  23. local root = char:WaitForChild("HumanoidRootPart")
  24. local hum = char:FindFirstChildOfClass("Humanoid")
  25. local debris = game:GetService("Debris")
  26. local input = game:GetService("UserInputService")
  27. local run = game:GetService("RunService")
  28. local rs = run.RenderStepped
  29. local wingpose = "Idle"
  30. local DebrisModel = Instance.new("Model",char)
  31. DebrisModel.Name = "Debris"
  32. repeat rs:wait() until p.CharacterAppearanceLoaded
  33.  
  34. noidle = false
  35. shift = false
  36. control = false
  37. no_nosound_able = false
  38. kills = 0
  39.  
  40. ----------------------------------------------------------------------------
  41.  
  42. function rswait(value)
  43. if value ~= nil and value ~= 0 then
  44. for i=1,value do
  45. rs:wait()
  46. end
  47. else
  48. rs:wait()
  49. end
  50. end
  51.  
  52. ----------------------------------------------------------------------------
  53.  
  54. local timeposition = 0
  55.  
  56. function music(id)
  57. if not torso:FindFirstChild("MusicRuin") then
  58. soundz = Instance.new("Sound",torso)
  59. end
  60. soundz.Volume = 10
  61. soundz.Name = "MusicRuin"
  62. soundz.Looped = true
  63. soundz.PlaybackSpeed = 1
  64. soundz.SoundId = "rbxassetid://"..id
  65. soundz:Stop()
  66. soundz:Play()
  67. if no_nosound_able == true then
  68. soundz.TimePosition = timeposition
  69. end
  70. end
  71.  
  72. ----------------------------------------------------------------------------
  73.  
  74. function lerp(a, b, t)
  75. return a + (b - a)*t
  76. end
  77.  
  78. ----------------------------------------------------------------------------
  79.  
  80. function Lerp(c1,c2,al)
  81. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  82. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  83. for i,v in pairs(com1) do
  84. com1[i] = v+(com2[i]-v)*al
  85. end
  86. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  87. end
  88.  
  89. ----------------------------------------------------------------------------
  90.  
  91. function slerp(a, b, t)
  92. dot = a:Dot(b)
  93. if dot > 0.99999 or dot < -0.99999 then
  94. return t <= 0.5 and a or b
  95. else
  96. r = math.acos(dot)
  97. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  98. end
  99. end
  100.  
  101. ----------------------------------------------------------------------------
  102.  
  103. function clerp(c1,c2,al)
  104.  
  105. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  106.  
  107. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  108.  
  109. for i,v in pairs(com1) do
  110.  
  111. com1[i] = lerp(v,com2[i],al)
  112.  
  113. end
  114.  
  115. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  116.  
  117. end
  118.  
  119. ----------------------------------------------------------------------------
  120.  
  121. function findAllNearestTorso(pos,dist)
  122. local list = workspace:children()
  123. local torso = {}
  124. local temp = nil
  125. local human = nil
  126. local temp2 = nil
  127. for x = 1, #list do
  128. temp2 = list[x]
  129. if (temp2.className == "Model") and (temp2 ~= char) then
  130. temp = temp2:findFirstChild("Torso")
  131. human = temp2:findFirstChildOfClass("Humanoid")
  132. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  133. if (temp.Position - pos).magnitude < dist then
  134. table.insert(torso,temp)
  135. dist = (temp.Position - pos).magnitude
  136. end
  137. end
  138. end
  139. end
  140. return torso
  141. end
  142.  
  143. ----------------------------------------------------------------------------
  144.  
  145. function checkIfNotPlayer(model)
  146. if model.CanCollide == true and model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel and model ~= wings and model.Parent ~= wings and model.Parent.Parent ~= wings then
  147. return true
  148. else
  149. return false
  150. end
  151. end
  152.  
  153. ----------------------------------------------------------------------------
  154.  
  155. function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
  156.  
  157. local wld = Instance.new("Weld", wp1)
  158.  
  159. wld.Part0 = wp0
  160.  
  161. wld.Part1 = wp1
  162.  
  163. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  164.  
  165. return wld
  166.  
  167. end
  168.  
  169. function weld(model)
  170. local parts,last = {}
  171. local function scan(parent)
  172. for _,v in pairs(parent:GetChildren()) do
  173. if (v:IsA("BasePart")) then
  174. if (last) then
  175. local w = Instance.new("Weld")
  176. w.Name = ("%s_Weld"):format(v.Name)
  177. w.Part0,w.Part1 = last,v
  178. w.C0 = last.CFrame:inverse()
  179. w.C1 = v.CFrame:inverse()
  180. w.Parent = last
  181. end
  182. last = v
  183. table.insert(parts,v)
  184. end
  185. scan(v)
  186. end
  187. end
  188. scan(model)
  189. for _,v in pairs(parts) do
  190. v.Anchored = false
  191. v.Locked = true
  192. v.Anchored = false
  193. v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  194. v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  195. v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  196. v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  197. v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  198. v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  199. v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0)
  200. end
  201. end
  202.  
  203. ----------------------------------------------------------------------------
  204.  
  205. function calculate(part,asd)
  206. local Head = hed
  207. local RightShoulder = asd
  208. local RightArm = part
  209. local MousePosition = mouse.Hit.p
  210. local ToMouse = (MousePosition - Head.Position).unit
  211. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  212. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  213. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  214. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  215. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  216. if tostring(LateralAngle) == "-1.#IND" then
  217. LateralAngle = 0
  218. end
  219. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  220. if LateralAngle > (math.pi / 2) then
  221. LateralAngle = (math.pi / 2)
  222. local Torso = root
  223. local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p-Torso.CFrame.p)
  224. if Point.Z > 0 then
  225. if Point.X > -0 and RightArm == rarm then
  226. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(110),0)
  227. elseif Point.X < 0 and RightArm == rarm then
  228. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(mouse.Hit.X,Torso.Position.Y,mouse.Hit.Z))*CFrame.Angles(0,math.rad(-110),0)
  229. end
  230. end
  231. end
  232. if Cross.Y < 0 then
  233. LateralAngle = -LateralAngle
  234. end
  235. return(CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2))
  236. end
  237.  
  238. ----------------------------------------------------------------------------
  239.  
  240. function sound(id,position,vol,pitch,start,finish)
  241. coroutine.resume(coroutine.create(function()
  242.  
  243. local part = Instance.new("Part",workspace)
  244. part.Position = position
  245. part.Size = Vector3.new(0,0,0)
  246. part.CanCollide = false
  247. part.Transparency = 1
  248.  
  249. local sound = Instance.new("Sound",part)
  250.  
  251. sound.SoundId = "rbxassetid://"..id
  252.  
  253. repeat rs:wait() until sound.IsLoaded
  254.  
  255. if vol ~= nil then
  256. sound.Volume = vol
  257. end
  258.  
  259. if pitch ~= nil then
  260. sound.PlaybackSpeed = pitch
  261. end
  262.  
  263. if start ~= nil then
  264. sound.TimePosition = start
  265. end
  266.  
  267. if finish ~= nil then
  268. debris:AddItem(part,finish-start)
  269. else
  270. debris:AddItem(part,sound.TimeLength)
  271. end
  272.  
  273. sound:Play()
  274.  
  275. return sound
  276.  
  277. end))
  278. end
  279.  
  280. ----------------------------------------------------------------------------
  281.  
  282. function computeDirection(vec)
  283. local lenSquared = vec.magnitude * vec.magnitude
  284. local invSqrt = 1 / math.sqrt(lenSquared)
  285. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  286. end
  287.  
  288. ----------------------------------------------------------------------------
  289.  
  290. local shaking = 0
  291. function shake(num) if num > shaking then shaking = num end end
  292. game:GetService("RunService").RenderStepped:connect(function()
  293. hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))*(shaking/100)
  294. if shaking > 0 then shaking = shaking - 1 else shaking = 0 end
  295. end)
  296.  
  297. plr = game:GetService("Players").LocalPlayer
  298. DebrisModel = Instance.new("Model",plr.Character)
  299. DebrisModel.Name = "DebrisModel"
  300.  
  301. function Effect(mesh,size,transparency,material,color,position,rotation,sizechange,rotationchange,transparencychange,acceleration)
  302.  
  303. local part = Instance.new("Part",DebrisModel)
  304. part.Anchored = true
  305. part.CanCollide = false
  306. part.Size = Vector3.new(1,1,1)
  307. part.Transparency = transparency
  308. part.Material = material
  309. part.Color = color
  310. part.CFrame = CFrame.new(position)*CFrame.Angles(math.rad(rotation.X),math.rad(rotation.Y),math.rad(rotation.Z))
  311.  
  312. local partmesh = Instance.new("SpecialMesh",part)
  313. if tonumber(mesh) == nil then partmesh.MeshType = mesh else partmesh.MeshId = "rbxassetid://"..mesh end
  314. partmesh.Scale = size
  315.  
  316. local pvalue = Instance.new("Vector3Value",part)
  317. pvalue.Name = "Position"
  318. pvalue.Value = part.Position
  319.  
  320. local svalue = Instance.new("Vector3Value",part)
  321. svalue.Name = "Size"
  322. svalue.Value = sizechange
  323.  
  324. local rvalue = Instance.new("Vector3Value",part)
  325. rvalue.Name = "Rotation"
  326. rvalue.Value = rotationchange
  327.  
  328. local tvalue = Instance.new("NumberValue",part)
  329. tvalue.Name = "Transparency"
  330. tvalue.Value = transparencychange
  331.  
  332. local avalue = Instance.new("NumberValue",part)
  333. avalue.Name = "Acceleration"
  334. avalue.Value = acceleration
  335.  
  336. part.Name = "EFFECT"
  337.  
  338. return part
  339.  
  340. end
  341.  
  342. game:GetService("RunService").RenderStepped:connect(function()
  343.  
  344.  
  345. if not plr.Character:FindFirstChild("DebrisModel") then
  346. DebrisModel = Instance.new("Model",plr.Character)
  347. DebrisModel.Name = "DebrisModel"
  348. end
  349.  
  350. for i,v in pairs(DebrisModel:GetChildren()) do
  351. if v:IsA("BasePart") and v.Name == "EFFECT" then
  352. local pvalue = v:FindFirstChild("Position").Value
  353. local svalue = v:FindFirstChild("Size").Value
  354. local rvalue = v:FindFirstChild("Rotation").Value
  355. local tvalue = v:FindFirstChild("Transparency").Value
  356. local avalue = v:FindFirstChild("Acceleration").Value
  357. local mesh = v:FindFirstChild("Mesh")
  358. mesh.Scale = mesh.Scale + svalue
  359. v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + (Vector3.new(1,1,1)*avalue)
  360. v.Transparency = v.Transparency + tvalue
  361. v.CFrame = v.CFrame*CFrame.Angles(math.rad(rvalue.X),math.rad(rvalue.Y),math.rad(rvalue.Z))
  362. if v.Transparency >= 1 or mesh.Scale.X < 0 or mesh.Scale.Y < 0 or mesh.Scale.Z < 0 then
  363. v:Destroy()
  364. end
  365. end
  366. end
  367.  
  368.  
  369. end)
  370.  
  371. ----------------------------------------------------------------------------
  372. skin_color1 = BrickColor.new("Pastel yellow")
  373. skin_color2 = BrickColor.new("Bright yellow")
  374. skin_color3 = BrickColor.new("Steel blue")
  375. p:ClearCharacterAppearance()
  376. --hed:WaitForChild("face"):Destroy()
  377.  
  378. ----------------------------------------------------------------------------
  379. music(321065151)
  380. equalizer = Instance.new("EqualizerSoundEffect",torso:FindFirstChild("MusicRuin"))
  381.  
  382. local size = 1
  383.  
  384. newWeld(torso, larm, -1.5*size, 0.5*size, 0)
  385. larm.Weld.C1 = CFrame.new(0, 0.5*size, 0)
  386. newWeld(torso, rarm, 1.5*size, 0.5*size, 0)
  387. rarm.Weld.C1 = CFrame.new(0, 0.5*size, 0)
  388. newWeld(torso, hed, 0, 1.5*size, 0)
  389. newWeld(torso, lleg, -0.5*size, -1, 0)
  390. lleg.Weld.C1 = CFrame.new(0, 1*size, 0)
  391. newWeld(torso, rleg, 0.5*size, -1*size, 0)
  392. rleg.Weld.C1 = CFrame.new(0, 1*size, 0)
  393. newWeld(root, torso, 0, -1*size, 0)
  394. torso.Weld.C1 = CFrame.new(0, -1*size, 0)
  395.  
  396. emitters={}
  397. for i,v in pairs(char:GetChildren()) do
  398. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  399. local emitter = Instance.new("ParticleEmitter",v)
  400. emitter.LightEmission = 1
  401. emitter.Transparency = NumberSequence.new(0.95,1)
  402. emitter.Size = NumberSequence.new(2,5)
  403. emitter.SpreadAngle = Vector2.new(360,360)
  404. emitter.Speed = NumberRange.new(1)
  405. emitter.Lifetime = NumberRange.new(0.75)
  406. emitter.Texture = "rbxassetid://133619974"
  407. emitter.Rate = 20
  408. emitter.Color = ColorSequence.new(Color3.new(0,1,0))
  409. emitter.LockedToPart = true
  410. table.insert(emitters,emitter)
  411. end
  412. end
  413. ----------------------------------------------------------------------------------------
  414. hair = Instance.new("Part",char)
  415. hair.Color = Color3.fromRGB(30,10,0)
  416. hair.CanCollide = false
  417. meshhair = Instance.new("SpecialMesh",hair)
  418. meshhair.MeshId = "rbxassetid://0"
  419. meshhair.Scale = Vector3.new(1,1,1)*1.1
  420. newWeld(hed,hair,0,0.22,0)
  421.  
  422. ----------------------------------------------------------------------------
  423. HitBox = Instance.new("Part",DebrisModel)
  424. HitBox.Size = Vector3.new(0.5,0.5,2.45)
  425. HitBox.CanCollide = false
  426. HitBox:BreakJoints()
  427. HitBox.Transparency = 1
  428. newWeld(rarm,HitBox,0,-0.95,-1.9)
  429. atch0 = Instance.new("Attachment",HitBox)
  430. atch0.Position = Vector3.new(0,0,HitBox.Size.Z/2)
  431. atch1 = Instance.new("Attachment",HitBox)
  432. atch1.Position = Vector3.new(0,0,-HitBox.Size.Z/2)
  433. trail = Instance.new("Trail",HitBox)
  434. trail.Attachment0 = atch0
  435. trail.Attachment1 = atch1
  436. trail.Lifetime = 0.2
  437. trail.Enabled = true
  438. trail.LightEmission = 1
  439. trail.LightInfluence = 0
  440. trail.Color = ColorSequence.new(Color3.new(0,1,0))
  441. trail.Transparency = NumberSequence.new(0,1)
  442.  
  443. function ded(model)
  444. kills = kills + 1
  445. model.Archivable = true
  446. model.Head:ClearAllChildren()
  447. local clone = model:Clone()
  448. clone.Parent = workspace
  449. clone.Name = "DED"
  450. model:Destroy()
  451. clone:FindFirstChildOfClass("Humanoid"):Destroy()
  452. local emitters={}
  453. for i,v in pairs(clone:GetChildren()) do
  454. if v:IsA("Accoutrement") then
  455. v:Destroy()
  456. end
  457. if v:IsA("Part") then
  458. v.Anchored = true
  459. v.CanCollide = false
  460. v.Transparency = 1
  461. local emitter = Instance.new("ParticleEmitter",v)
  462. emitter.LightEmission = 1
  463. emitter.Transparency = NumberSequence.new(0,1)
  464. emitter.Size = NumberSequence.new(0,0.8)
  465. emitter.SpreadAngle = Vector2.new(360,360)
  466. emitter.Speed = NumberRange.new(0.5)
  467. emitter.Lifetime = NumberRange.new(0.75)
  468. emitter.Texture = "rbxassetid://744949545"
  469. emitter.Rate = 20
  470. emitter.Color = ColorSequence.new(Color3.new(1,1,1))
  471. emitter.LockedToPart = false
  472. table.insert(emitters,emitter)
  473. end
  474. end
  475. delay(1, function()
  476. sound(427025525,clone.Head.Position,10,1)
  477. for i,v in pairs(emitters) do
  478. v.Speed = NumberRange.new(4)
  479. v.Acceleration = Vector3.new(0,10,0)
  480. delay(0.5, function()
  481. v.Enabled = false
  482. debris:AddItem(clone,0.75)
  483. end)
  484. end
  485. end)
  486. end
  487.  
  488. local alreadytouched = {}
  489. HitBox.Touched:connect(function(ht)
  490. coroutine.resume(coroutine.create(function()
  491. local hit = ht.Parent
  492. if mode == "determination" and hit.Name ~= "DED" and attacking == true and checkIfNotPlayer(ht) and hit:FindFirstChildOfClass("Humanoid") and hit:FindFirstChildOfClass("Humanoid").Health > 0 then
  493. local hurt = true
  494. for i,v in pairs(alreadytouched) do if v == hit then hurt = false end end
  495. if hurt == true then
  496. table.insert(alreadytouched,hit)
  497. sound(388826051,ht.Position,10,1)
  498. ded(hit)
  499. end
  500. end
  501. end))
  502. end)
  503.  
  504. function createknife()
  505. Model0 = Instance.new("Model")
  506. Part1 = Instance.new("Part")
  507. BlockMesh2 = Instance.new("BlockMesh")
  508. Part3 = Instance.new("Part")
  509. BlockMesh4 = Instance.new("BlockMesh")
  510. Part5 = Instance.new("Part")
  511. Part6 = Instance.new("Part")
  512. BlockMesh7 = Instance.new("BlockMesh")
  513. Part8 = Instance.new("Part")
  514. Part9 = Instance.new("Part")
  515. Part10 = Instance.new("Part")
  516. SpecialMesh11 = Instance.new("SpecialMesh")
  517. Part12 = Instance.new("Part")
  518. Model0.Parent = char
  519. Part1.Parent = Model0
  520. Part1.Anchored = true
  521. Part1.CanCollide = false
  522. Part1.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007)
  523. Part1.CFrame = CFrame.new(49.5, 20.7350044, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  524. Part1.BottomSurface = Enum.SurfaceType.Smooth
  525. Part1.TopSurface = Enum.SurfaceType.Smooth
  526. Part1.Position = Vector3.new(49.5, 20.7350044, 52.3199997)
  527. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  528. BlockMesh2.Parent = Part1
  529. BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  530. BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  531. Part3.Parent = Model0
  532. Part3.Anchored = true
  533. Part3.CanCollide = false
  534. Part3.Size = Vector3.new(0.220000014, 0.0500000007, 0.0500000007)
  535. Part3.CFrame = CFrame.new(49.5, 20.6250038, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  536. Part3.BottomSurface = Enum.SurfaceType.Smooth
  537. Part3.TopSurface = Enum.SurfaceType.Smooth
  538. Part3.Position = Vector3.new(49.5, 20.6250038, 53.6199989)
  539. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  540. BlockMesh4.Parent = Part3
  541. BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  542. BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  543. Part5.Parent = Model0
  544. Part5.Anchored = true
  545. Part5.CanCollide = false
  546. Part5.Size = Vector3.new(0.159999996, 0.400000006, 1.70000005)
  547. Part5.CFrame = CFrame.new(49.5, 20.5750046, 51.4300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  548. Part5.BottomSurface = Enum.SurfaceType.Smooth
  549. Part5.TopSurface = Enum.SurfaceType.Smooth
  550. Part5.Position = Vector3.new(49.5, 20.5750046, 51.4300003)
  551. Part5.Color = Color3.new(0, 1, 0)
  552. Part6.Parent = Model0
  553. Part6.Anchored = true
  554. Part6.CanCollide = false
  555. Part6.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007)
  556. Part6.CFrame = CFrame.new(49.5, 20.4150047, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  557. Part6.BottomSurface = Enum.SurfaceType.Smooth
  558. Part6.TopSurface = Enum.SurfaceType.Smooth
  559. Part6.Position = Vector3.new(49.5, 20.4150047, 52.3199997)
  560. Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  561. BlockMesh7.Parent = Part6
  562. BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  563. BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  564. Part8.Name = "asd"
  565. Part8.Parent = Model0
  566. Part8.Anchored = true
  567. Part8.CanCollide = false
  568. Part8.Size = Vector3.new(0.200000003, 0.200000003, 1.30000007)
  569. Part8.CFrame = CFrame.new(49.5, 20.6250038, 52.9300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  570. Part8.BottomSurface = Enum.SurfaceType.Smooth
  571. Part8.TopSurface = Enum.SurfaceType.Smooth
  572. Part8.Position = Vector3.new(49.5, 20.6250038, 52.9300003)
  573. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  574. Part9.Parent = Model0
  575. Part9.Anchored = true
  576. Part9.CanCollide = false
  577. Part9.Size = Vector3.new(0.200000003, 0.25999999, 0.100000039)
  578. Part9.CFrame = CFrame.new(49.5, 20.595005, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  579. Part9.BottomSurface = Enum.SurfaceType.Smooth
  580. Part9.TopSurface = Enum.SurfaceType.Smooth
  581. Part9.Position = Vector3.new(49.5, 20.595005, 53.6199989)
  582. Part9.Color = Color3.new(0.105882, 0.164706, 0.207843)
  583. Part10.Parent = Model0
  584. Part10.Rotation = Vector3.new(0, 0, 180)
  585. Part10.Anchored = true
  586. Part10.CanCollide = false
  587. Part10.Size = Vector3.new(0.159999996, 0.400000006, 0.800000012)
  588. Part10.CFrame = CFrame.new(49.5, 20.5750046, 50.1800003, -0.99999994, -8.74227766e-08, 3.82137093e-15, 8.74227695e-08, -1, 3.17865059e-08, 1.04250613e-15, 3.17865059e-08, 1)
  589. Part10.BottomSurface = Enum.SurfaceType.Smooth
  590. Part10.TopSurface = Enum.SurfaceType.Smooth
  591. Part10.Position = Vector3.new(49.5, 20.5750046, 50.1800003)
  592. Part10.Color = Color3.new(0, 1, 0)
  593. SpecialMesh11.Parent = Part10
  594. SpecialMesh11.MeshType = Enum.MeshType.Wedge
  595. Part12.Parent = Model0
  596. Part12.Anchored = true
  597. Part12.CanCollide = false
  598. Part12.Size = Vector3.new(0.25999999, 0.460000008, 0.100000039)
  599. Part12.CFrame = CFrame.new(49.5, 20.5750046, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  600. Part12.BottomSurface = Enum.SurfaceType.Smooth
  601. Part12.TopSurface = Enum.SurfaceType.Smooth
  602. Part12.Position = Vector3.new(49.5, 20.5750046, 52.3199997)
  603. Part12.Color = Color3.new(0.105882, 0.164706, 0.207843)
  604. weld(Model0)
  605. for i,v in pairs(Model0:GetChildren()) do
  606. if v:IsA("Part") and v.Color == Color3.new(0,1,0) then
  607. v.Material = Enum.Material.Neon
  608. end
  609. end
  610. return Model0
  611. end
  612.  
  613. knife = createknife()
  614. newWeld(rarm,knife.asd,0,-1,0)
  615.  
  616. ----------------------------------------------------------------------------------------
  617.  
  618. function createpistol()
  619. Model0 = Instance.new("Model")
  620. Part1 = Instance.new("Part")
  621. BlockMesh2 = Instance.new("BlockMesh")
  622. Part3 = Instance.new("Part")
  623. Part4 = Instance.new("Part")
  624. Part5 = Instance.new("Part")
  625. Part6 = Instance.new("Part")
  626. Part7 = Instance.new("Part")
  627. Part8 = Instance.new("Part")
  628. Part9 = Instance.new("Part")
  629. Part10 = Instance.new("Part")
  630. Part11 = Instance.new("Part")
  631. Part12 = Instance.new("Part")
  632. Part13 = Instance.new("Part")
  633. Part14 = Instance.new("Part")
  634. Part15 = Instance.new("Part")
  635. Part16 = Instance.new("Part")
  636. Part17 = Instance.new("Part")
  637. Part18 = Instance.new("Part")
  638. Part19 = Instance.new("Part")
  639. Model0.Name = "Pistol"
  640. Model0.Parent = char
  641. Part1.Name = "ShootPos"
  642. Part1.Parent = Model0
  643. Part1.BrickColor = BrickColor.new("Toothpaste")
  644. Part1.Anchored = true
  645. Part1.CanCollide = false
  646. Part1.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007)
  647. Part1.CFrame = CFrame.new(-90, 10.5000019, 13.8957434, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  648. Part1.BottomSurface = Enum.SurfaceType.Smooth
  649. Part1.TopSurface = Enum.SurfaceType.Smooth
  650. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  651. Part1.Position = Vector3.new(-90, 10.5000019, 13.8957434)
  652. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  653. BlockMesh2.Parent = Part1
  654. BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988)
  655. BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988)
  656. Part3.Parent = Model0
  657. Part3.BrickColor = BrickColor.new("Lime green")
  658. Part3.Anchored = true
  659. Part3.CanCollide = false
  660. Part3.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007)
  661. Part3.CFrame = CFrame.new(-90.0999985, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  662. Part3.BottomSurface = Enum.SurfaceType.Smooth
  663. Part3.TopSurface = Enum.SurfaceType.Smooth
  664. Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
  665. Part3.Position = Vector3.new(-90.0999985, 10.3750019, 13.8757429)
  666. Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
  667. Part4.Parent = Model0
  668. Part4.BrickColor = BrickColor.new("Lime green")
  669. Part4.Anchored = true
  670. Part4.CanCollide = false
  671. Part4.Size = Vector3.new(0.300000012, 0.349999994, 0.0500000007)
  672. Part4.CFrame = CFrame.new(-90, 10.2750025, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  673. Part4.BottomSurface = Enum.SurfaceType.Smooth
  674. Part4.TopSurface = Enum.SurfaceType.Smooth
  675. Part4.Color = Color3.new(0.905882, 0.905882, 0.92549)
  676. Part4.Position = Vector3.new(-90, 10.2750025, 13.8757429)
  677. Part4.Color = Color3.new(0.905882, 0.905882, 0.92549)
  678. Part5.Parent = Model0
  679. Part5.BrickColor = BrickColor.new("Lime green")
  680. Part5.Rotation = Vector3.new(15, 0, 0)
  681. Part5.Anchored = true
  682. Part5.CanCollide = false
  683. Part5.Size = Vector3.new(0.200000003, 0.25, 0.150000006)
  684. Part5.CFrame = CFrame.new(-90, 10.4379425, 15.8274469, 1, 0, 0, 0, 0.965925753, -0.258819252, 0, 0.258819252, 0.965925753)
  685. Part5.BottomSurface = Enum.SurfaceType.Smooth
  686. Part5.TopSurface = Enum.SurfaceType.Smooth
  687. Part5.Color = Color3.new(0.905882, 0.905882, 0.92549)
  688. Part5.Position = Vector3.new(-90, 10.4379425, 15.8274469)
  689. Part5.Orientation = Vector3.new(15, 0, 0)
  690. Part5.Color = Color3.new(0.905882, 0.905882, 0.92549)
  691. Part6.Parent = Model0
  692. Part6.BrickColor = BrickColor.new("Lime green")
  693. Part6.Anchored = true
  694. Part6.CanCollide = false
  695. Part6.Size = Vector3.new(0.300000012, 0.550000012, 1.89999998)
  696. Part6.CFrame = CFrame.new(-90, 10.3750019, 14.8507433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  697. Part6.BottomSurface = Enum.SurfaceType.Smooth
  698. Part6.TopSurface = Enum.SurfaceType.Smooth
  699. Part6.Color = Color3.new(0.905882, 0.905882, 0.92549)
  700. Part6.Position = Vector3.new(-90, 10.3750019, 14.8507433)
  701. Part6.Color = Color3.new(0.905882, 0.905882, 0.92549)
  702. Part7.Parent = Model0
  703. Part7.BrickColor = BrickColor.new("Lime green")
  704. Part7.Anchored = true
  705. Part7.CanCollide = false
  706. Part7.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  707. Part7.CFrame = CFrame.new(-90.0999985, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  708. Part7.BottomSurface = Enum.SurfaceType.Smooth
  709. Part7.TopSurface = Enum.SurfaceType.Smooth
  710. Part7.Color = Color3.new(0.905882, 0.905882, 0.92549)
  711. Part7.Position = Vector3.new(-90.0999985, 10.6750021, 15.6257429)
  712. Part7.Color = Color3.new(0.905882, 0.905882, 0.92549)
  713. Part8.Parent = Model0
  714. Part8.BrickColor = BrickColor.new("Toothpaste")
  715. Part8.Rotation = Vector3.new(-15, 0, 0)
  716. Part8.Anchored = true
  717. Part8.CanCollide = false
  718. Part8.Size = Vector3.new(0.220000014, 0.5, 0.209999993)
  719. Part8.CFrame = CFrame.new(-90, 9.71499538, 15.4898481, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872)
  720. Part8.BottomSurface = Enum.SurfaceType.Smooth
  721. Part8.TopSurface = Enum.SurfaceType.Smooth
  722. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  723. Part8.Position = Vector3.new(-90, 9.71499538, 15.4898481)
  724. Part8.Orientation = Vector3.new(-15, 0, 0)
  725. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  726. Part9.Parent = Model0
  727. Part9.BrickColor = BrickColor.new("Lime green")
  728. Part9.Anchored = true
  729. Part9.CanCollide = false
  730. Part9.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007)
  731. Part9.CFrame = CFrame.new(-89.9000015, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  732. Part9.BottomSurface = Enum.SurfaceType.Smooth
  733. Part9.TopSurface = Enum.SurfaceType.Smooth
  734. Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
  735. Part9.Position = Vector3.new(-89.9000015, 10.3750019, 13.8757429)
  736. Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
  737. Part10.Parent = Model0
  738. Part10.BrickColor = BrickColor.new("Lime green")
  739. Part10.Anchored = true
  740. Part10.CanCollide = false
  741. Part10.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  742. Part10.CFrame = CFrame.new(-89.9000015, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  743. Part10.BottomSurface = Enum.SurfaceType.Smooth
  744. Part10.TopSurface = Enum.SurfaceType.Smooth
  745. Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
  746. Part10.Position = Vector3.new(-89.9000015, 10.6750021, 15.6257429)
  747. Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
  748. Part11.Parent = Model0
  749. Part11.BrickColor = BrickColor.new("Lime green")
  750. Part11.Anchored = true
  751. Part11.CanCollide = false
  752. Part11.Size = Vector3.new(0.200000003, 0.150000006, 0.600000024)
  753. Part11.CFrame = CFrame.new(-90, 9.37500191, 15.6007433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  754. Part11.BottomSurface = Enum.SurfaceType.Smooth
  755. Part11.TopSurface = Enum.SurfaceType.Smooth
  756. Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
  757. Part11.Position = Vector3.new(-90, 9.37500191, 15.6007433)
  758. Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
  759. Part12.Parent = Model0
  760. Part12.BrickColor = BrickColor.new("Lime green")
  761. Part12.Rotation = Vector3.new(-30, 0, 0)
  762. Part12.Anchored = true
  763. Part12.CanCollide = false
  764. Part12.Size = Vector3.new(0.100000001, 0.150000006, 0.0500000007)
  765. Part12.CFrame = CFrame.new(-90, 9.97165203, 15.1132431, 1, 0, 0, 0, 0.866025448, 0.5, 0, -0.5, 0.866025448)
  766. Part12.BottomSurface = Enum.SurfaceType.Smooth
  767. Part12.TopSurface = Enum.SurfaceType.Smooth
  768. Part12.Color = Color3.new(0.905882, 0.905882, 0.92549)
  769. Part12.Position = Vector3.new(-90, 9.97165203, 15.1132431)
  770. Part12.Orientation = Vector3.new(-30, 0, 0)
  771. Part12.Color = Color3.new(0.905882, 0.905882, 0.92549)
  772. Part13.Parent = Model0
  773. Part13.BrickColor = BrickColor.new("Lime green")
  774. Part13.Anchored = true
  775. Part13.CanCollide = false
  776. Part13.Size = Vector3.new(0.300000012, 0.100000001, 0.0500000007)
  777. Part13.CFrame = CFrame.new(-90, 10.6000023, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  778. Part13.BottomSurface = Enum.SurfaceType.Smooth
  779. Part13.TopSurface = Enum.SurfaceType.Smooth
  780. Part13.Color = Color3.new(0.905882, 0.905882, 0.92549)
  781. Part13.Position = Vector3.new(-90, 10.6000023, 13.8757429)
  782. Part13.Color = Color3.new(0.905882, 0.905882, 0.92549)
  783. Part14.Parent = Model0
  784. Part14.BrickColor = BrickColor.new("Lime green")
  785. Part14.Rotation = Vector3.new(-30, 0, 0)
  786. Part14.Anchored = true
  787. Part14.CanCollide = false
  788. Part14.Size = Vector3.new(0.200000003, 0.100000001, 0.25)
  789. Part14.CFrame = CFrame.new(-90, 10.5216522, 15.9065447, 1, 0, 0, 0, 0.866025329, 0.49999997, 0, -0.49999997, 0.866025329)
  790. Part14.BottomSurface = Enum.SurfaceType.Smooth
  791. Part14.TopSurface = Enum.SurfaceType.Smooth
  792. Part14.Color = Color3.new(0.905882, 0.905882, 0.92549)
  793. Part14.Position = Vector3.new(-90, 10.5216522, 15.9065447)
  794. Part14.Orientation = Vector3.new(-30, 0, 0)
  795. Part14.Color = Color3.new(0.905882, 0.905882, 0.92549)
  796. Part15.Parent = Model0
  797. Part15.BrickColor = BrickColor.new("White")
  798. Part15.Rotation = Vector3.new(-105, 0, 0)
  799. Part15.Anchored = true
  800. Part15.CanCollide = false
  801. Part15.Size = Vector3.new(0.100000001, 0.200000003, 0.0500000007)
  802. Part15.CFrame = CFrame.new(-90, 9.92812252, 15.2373915, 1, 0, 0, 0, -0.258819371, 0.965925813, 0, -0.965925813, -0.258819371)
  803. Part15.BottomSurface = Enum.SurfaceType.Smooth
  804. Part15.TopSurface = Enum.SurfaceType.Smooth
  805. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  806. Part15.Position = Vector3.new(-90, 9.92812252, 15.2373915)
  807. Part15.Orientation = Vector3.new(-75, 180, 180)
  808. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  809. Part16.Name = "asd"
  810. Part16.Parent = Model0
  811. Part16.BrickColor = BrickColor.new("Lime green")
  812. Part16.Rotation = Vector3.new(-15, 0, 0)
  813. Part16.Anchored = true
  814. Part16.CanCollide = false
  815. Part16.Size = Vector3.new(0.200000003, 1.14999998, 0.400000006)
  816. Part16.CFrame = CFrame.new(-90, 9.93709087, 15.5425692, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872)
  817. Part16.BottomSurface = Enum.SurfaceType.Smooth
  818. Part16.TopSurface = Enum.SurfaceType.Smooth
  819. Part16.Color = Color3.new(0.905882, 0.905882, 0.92549)
  820. Part16.Position = Vector3.new(-90, 9.93709087, 15.5425692)
  821. Part16.Orientation = Vector3.new(-15, 0, 0)
  822. Part16.Color = Color3.new(0.905882, 0.905882, 0.92549)
  823. Part17.Parent = Model0
  824. Part17.BrickColor = BrickColor.new("Lime green")
  825. Part17.Anchored = true
  826. Part17.CanCollide = false
  827. Part17.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007)
  828. Part17.CFrame = CFrame.new(-90, 10.0500021, 15.0757437, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  829. Part17.BottomSurface = Enum.SurfaceType.Smooth
  830. Part17.TopSurface = Enum.SurfaceType.Smooth
  831. Part17.Color = Color3.new(0.905882, 0.905882, 0.92549)
  832. Part17.Position = Vector3.new(-90, 10.0500021, 15.0757437)
  833. Part17.Color = Color3.new(0.905882, 0.905882, 0.92549)
  834. Part18.Parent = Model0
  835. Part18.BrickColor = BrickColor.new("Lime green")
  836. Part18.Anchored = true
  837. Part18.CanCollide = false
  838. Part18.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  839. Part18.CFrame = CFrame.new(-90, 10.6750021, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  840. Part18.BottomSurface = Enum.SurfaceType.Smooth
  841. Part18.TopSurface = Enum.SurfaceType.Smooth
  842. Part18.Color = Color3.new(0.905882, 0.905882, 0.92549)
  843. Part18.Position = Vector3.new(-90, 10.6750021, 13.8757429)
  844. Part18.Color = Color3.new(0.905882, 0.905882, 0.92549)
  845. Part19.Parent = Model0
  846. Part19.BrickColor = BrickColor.new("Lime green")
  847. Part19.Anchored = true
  848. Part19.CanCollide = false
  849. Part19.Size = Vector3.new(0.400000006, 0.200000003, 1.05000007)
  850. Part19.CFrame = CFrame.new(-90, 10.1500015, 14.4757433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  851. Part19.BottomSurface = Enum.SurfaceType.Smooth
  852. Part19.TopSurface = Enum.SurfaceType.Smooth
  853. Part19.Color = Color3.new(0.905882, 0.905882, 0.92549)
  854. Part19.Position = Vector3.new(-90, 10.1500015, 14.4757433)
  855. Part19.Color = Color3.new(0.905882, 0.905882, 0.92549)
  856. for i,v in pairs(Model0:GetChildren()) do
  857. if v:IsA("Part") then
  858. v.Color = Color3.new(0,1,0)
  859. v.Material = Enum.Material.Neon
  860. v.Transparency = 0
  861. v.CanCollide = false
  862. end
  863. end
  864. weld(Model0)
  865. return Model0
  866. end
  867.  
  868. mode = "determination"
  869. function justice()
  870. mode = "justice"
  871. for i=1,5 do rs:wait()
  872. local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000)
  873. Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Neon,Color3.new(0,1,0),rarm.RightGripAttachment.WorldPosition+(asd*1),asd*360,Vector3.new(0.5,0.5,0.5),asd*1,0.1,0.0005)
  874. end
  875. knife:Destroy()
  876. pistol = createpistol()
  877. newWeld(rarm,pistol.asd,0,-1,0)
  878. pistol.asd.Weld.C1 = CFrame.Angles(math.rad(110),0,0)
  879. end
  880.  
  881. function determination()
  882. mode = "determination"
  883. for i=1,5 do rs:wait()
  884. local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000)
  885. Effect(Enum.MeshType.Brick,Vector3.new(1,1,1),0,Enum.Material.Neon,Color3.new(0,1,0),rarm.RightGripAttachment.WorldPosition+(asd*1),asd*360,Vector3.new(0.5,0.5,0.5),asd*1,0.1,0.0005)
  886. end
  887. pistol:Destroy()
  888. knife = createknife()
  889. newWeld(rarm,knife.asd,0,-1,0)
  890. end
  891.  
  892. debounce = false
  893. mouse.KeyDown:connect(function(key)
  894. if debounce == false then
  895. debounce = true
  896. if key == "e" then
  897. sound(462606062,root.Position,10,1)
  898. if mode == "determination" then
  899. justice()
  900. elseif mode == "justice" then
  901. determination()
  902. end
  903. end
  904. delay(0.3,function() debounce = false end)
  905. end
  906. end)
  907.  
  908. ----------------------------------------------------------------------------------------
  909.  
  910. function slash()
  911. local spd = 0.2
  912. for i=1,15 do rs:wait()
  913. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  914. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(-30),math.rad(0)), spd)
  915. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(-10)), spd)
  916. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(160),math.rad(0),math.rad(10)), spd)
  917. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(-50),math.rad(10)), spd)
  918. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(50),math.rad(-10)), spd)
  919. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  920. end
  921. sound(357417055,root.Position,10,1)
  922. attacking = true
  923. local spd = 0.4
  924. for i=1,5 do rs:wait()
  925. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  926. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(0)), spd)
  927. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(-10),math.rad(0),math.rad(-20)), spd)
  928. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(-10),math.rad(0),math.rad(0)), spd)
  929. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(-20)), spd)
  930. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  931. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-80),math.rad(20)), spd)
  932. end
  933. end
  934.  
  935. mouse.Button1Down:connect(function()
  936. if debounce == false and mode == "determination" then
  937. alreadytouched = {}
  938. noidle = true
  939. debounce = true
  940. slash()
  941. attacking = false
  942. noidle = false
  943. delay(0.05,function() debounce = false end)
  944. end
  945. end)
  946.  
  947. -----------------------------
  948. local jumped = false
  949. function boom()
  950. freeze = true
  951. sound(446961725,root.Position,10,1)
  952. local bg = Instance.new("BodyGyro",root)
  953. bg.Name = "lolnochara"
  954. bg.P = 10000
  955. bg.D = 100
  956. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  957. if jumped == false then
  958. root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  959. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  960. else
  961. root.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  962. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  963. end
  964.  
  965. local spd = 0.2
  966. for i=1,20 do rs:wait()
  967. if jumped == false then
  968. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  969. else
  970. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  971. end
  972. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  973. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  974. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  975. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(45),math.rad(0),math.rad(90)), spd)
  976. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  977. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)), spd)
  978. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-20),math.rad(0)), spd)
  979. end
  980.  
  981. bg:Destroy()
  982.  
  983. sound(470245800,root.Position,10,1)
  984.  
  985. local Part0 = Instance.new("Part",DebrisModel)
  986. Part0.Name = "Bullet"
  987. Part0.Material = Enum.Material.Neon
  988. Part0.Color = Color3.new(0,1,0)
  989. Part0.Anchored = true
  990. local mesh = Instance.new("SpecialMesh",Part0)
  991. mesh.MeshType = Enum.MeshType.Brick
  992. Part0.CanCollide = false
  993. local Position = rarm.Position
  994. local Target = mouse.Hit.p
  995. local direction = Target - Position
  996. local direction = computeDirection(direction)
  997. local ray = Ray.new(Position, (Target-Position).unit*1048)
  998. local part, endPoint = workspace:FindPartOnRay(ray, char)
  999. Part0.Size = Vector3.new(5,1,5)
  1000. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude+5,1)
  1001. local pos = Position + (direction * (mesh.Scale.Y/2))
  1002. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1003. local loop = nil
  1004. local i = 0
  1005. rs:connect(function()
  1006. local lole = (i/10)
  1007. mesh.Scale = Vector3.new(lole,mesh.Scale.Y,lole)
  1008. Part0.Transparency = Part0.Transparency + 0.1
  1009. i = i + 1
  1010. if Part0.Transparency >= 1 then
  1011. Part0:Destroy()
  1012. end
  1013. end)
  1014.  
  1015. if part and part.Parent:FindFirstChildOfClass("Humanoid") and checkIfNotPlayer(part) == true then
  1016. coroutine.resume(coroutine.create(function()
  1017. sound(388826051,part.Position,10,1)
  1018. ded(part.Parent)
  1019. end))
  1020. end
  1021.  
  1022. local spd = 0.5
  1023. for i=1,10 do rs:wait()
  1024. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.1) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  1025. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1026. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), spd)
  1027. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0) *CFrame.Angles(math.rad(45),math.rad(40),math.rad(90)), spd)
  1028. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1029. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.95,0)*CFrame.Angles(math.rad(0),math.rad(-5),math.rad(0)), spd)
  1030. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-0.95,0) *CFrame.Angles(math.rad(0),math.rad(-20),math.rad(0)), spd)
  1031. end
  1032.  
  1033. freeze = false
  1034.  
  1035. end
  1036.  
  1037. mouse.Button1Down:connect(function()
  1038. if debounce == false and mode == "justice" then
  1039. alreadytouched = {}
  1040. noidle = true
  1041. debounce = true
  1042. boom()
  1043. attacking = false
  1044. noidle = false
  1045. delay(0.05,function() debounce = false end)
  1046. end
  1047. end)
  1048.  
  1049. ----------------------------------------------------------------------------------------
  1050. velocityYFall=0
  1051. velocityYFall2=0
  1052. velocityYFall3=0
  1053. velocityYFall4=0
  1054. neckrotY=0
  1055. neckrotY2=0
  1056. torsorotY=0
  1057. torsorotY2=0
  1058. torsoY=0
  1059. torsoY2=0
  1060. colored = 0
  1061. sine = 0
  1062. change=0.4
  1063. movement=5
  1064. timeranim=0
  1065. running = false
  1066. glitched = false
  1067. backup = hed.Weld.C1
  1068. glitchedC1 = hed.Weld.C1
  1069.  
  1070. mouse.KeyDown:connect(function(key)
  1071. key = string.lower(key)
  1072. if string.byte(key) == 48 then
  1073. running = true
  1074. local keyup = mouse.KeyUp:connect(function(key)
  1075. if string.byte(key) == 48 then
  1076. running = false
  1077. end
  1078. end)
  1079. repeat rs:wait() until running == false
  1080. keyup:disconnect()
  1081. end
  1082. end)
  1083.  
  1084. icolor=1
  1085. imode=false
  1086.  
  1087. didjump = false
  1088. jumppower = 0
  1089. freeze = false
  1090. debounceimpact = false
  1091.  
  1092. function jumpimpact()
  1093. if debounceimpact == false then
  1094. debounceimpact = true
  1095. if jumppower < -150 then jumppower = -150 end
  1096. shake(-jumppower/5)
  1097. for i=1,-jumppower/20 do rs:wait()
  1098. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05)
  1099. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, (jumppower/20)*size-hum.HipHeight, 0) * CFrame.Angles(math.rad(0),math.rad(0), math.rad(0)), 0.05)
  1100. end
  1101. debounceimpact = false
  1102. end
  1103. end
  1104.  
  1105. local sond = nil
  1106. rs:connect(function()
  1107.  
  1108. if not torso:FindFirstChild("STATICSOUND") then
  1109. sond=Instance.new("Sound",torso)
  1110. sond.Name = "STATICSOUND"
  1111. sond.SoundId = "rbxassetid://223103466"
  1112. sond.Looped = true
  1113. sond:Play()
  1114. end
  1115.  
  1116. if icolor > 1 then
  1117. imode = false
  1118. elseif icolor < 0 then
  1119. imode = true
  1120. end
  1121.  
  1122. if imode == true then
  1123. icolor = icolor + 0.01
  1124. else
  1125. icolor = icolor - 0.01
  1126. end
  1127.  
  1128. for i,v in pairs(emitters) do
  1129. v.Acceleration = root.CFrame.upVector*(666/100)
  1130. end
  1131.  
  1132. if p.Character.Parent == nil then
  1133. local model = Instance.new("Model")
  1134. model.Name = p.Name
  1135. p.Character = model
  1136. for i,v in pairs(char:GetChildren()) do
  1137. v.Parent = p.Character
  1138. end
  1139. end
  1140.  
  1141. char = p.Character
  1142. if p.Character.Parent ~= workspace then
  1143. p.Character.Parent = workspace
  1144. end
  1145. for i,v in pairs(char:GetChildren()) do
  1146. if v:IsA("Accoutrement") then
  1147. if v.Handle:FindFirstChild("Mesh") then
  1148. v.Handle:FindFirstChild("Mesh").Offset = Vector3.new()
  1149. v.Handle.Transparency = 0
  1150. end
  1151. elseif v:IsA("BasePart") then
  1152. v.Anchored = false
  1153. if v:FindFirstChildOfClass("BodyPosition") then
  1154. v:FindFirstChildOfClass("BodyPosition"):Destroy()
  1155. end
  1156. if v:FindFirstChildOfClass("BodyVelocity") then
  1157. v:FindFirstChildOfClass("BodyVelocity"):Destroy()
  1158. end
  1159. if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
  1160. v:FindFirstChildOfClass("BodyGyro"):Destroy()
  1161. end
  1162. if v:FindFirstChild("Mesh") then
  1163. v:FindFirstChild("Mesh").Offset = Vector3.new()
  1164. end
  1165. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then
  1166. local force = Instance.new("Part",DebrisModel)
  1167. force.Name = v.Name.."FORCEFIELD"
  1168. force.Size = v.Size+(Vector3.new(1,1,1)*0.2)
  1169. force.CanCollide = false
  1170. force.Transparency = 1
  1171. newWeld(v,force,0,0,0)
  1172. else
  1173. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
  1174. newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0)
  1175. end
  1176. end
  1177. if v.Name ~= "HumanoidRootPart" then
  1178. v.Transparency = 0
  1179. else
  1180. v.Transparency = 1
  1181. end
  1182. end
  1183. end
  1184.  
  1185. if mode == "determination" then
  1186. trail.Enabled = true
  1187. else
  1188. trail.Enabled = false
  1189. end
  1190.  
  1191. if freeze == false then
  1192. if running == false then
  1193. hum.WalkSpeed = 12*size
  1194. change=0.4
  1195. movement=5
  1196. else
  1197. hum.WalkSpeed = (666/10)*size
  1198. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5*size then
  1199. change=1
  1200. else
  1201. change=0.4
  1202. end
  1203. movement=15
  1204. end
  1205. else
  1206. hum.WalkSpeed = 1
  1207. change=0.4
  1208. movement=5
  1209. end
  1210.  
  1211. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then
  1212. velocityYFall = root.Velocity.Y/1.5
  1213. else
  1214. if -root.Velocity.Y/1.5 < -5 then
  1215. velocityYFall = 5
  1216. elseif -root.Velocity.Y/1.5 > 150 then
  1217. velocityYFall = -150
  1218. end
  1219. end
  1220.  
  1221. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  1222. velocityYFall2 = root.Velocity.Y/180
  1223. else
  1224. if -root.Velocity.Y/180 < 0 then
  1225. velocityYFall2 = 0
  1226. elseif -root.Velocity.Y/180 > 1.2 then
  1227. velocityYFall2 = -1.2
  1228. end
  1229. end
  1230.  
  1231. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  1232. velocityYFall3 = root.Velocity.Y/1.5
  1233. else
  1234. if -root.Velocity.Y/1.5 < -5 then
  1235. velocityYFall3 = 5
  1236. elseif -root.Velocity.Y/1.5 > 50 then
  1237. velocityYFall3 = -50
  1238. end
  1239. end
  1240.  
  1241. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  1242. velocityYFall4 = root.Velocity.Y/1.5
  1243. else
  1244. if -root.Velocity.Y/180 < -5 then
  1245. velocityYFall4 = 5
  1246. elseif -root.Velocity.Y/180 > 50 then
  1247. velocityYFall4 = -50
  1248. end
  1249. end
  1250.  
  1251. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  1252. neckrotY = root.RotVelocity.Y/6
  1253. else
  1254. if root.RotVelocity.Y/6 < -1 then
  1255. neckrotY = -1
  1256. elseif root.RotVelocity.Y/6 > 1 then
  1257. neckrotY = 1
  1258. end
  1259. end
  1260.  
  1261. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  1262. neckrotY2 = root.RotVelocity.Y/8
  1263. else
  1264. if root.RotVelocity.Y/8 < -0.6 then
  1265. neckrotY2 = -0.6
  1266. elseif root.RotVelocity.Y/8 > 0.6 then
  1267. neckrotY2 = 0.6
  1268. end
  1269. end
  1270.  
  1271. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  1272. torsorotY = root.RotVelocity.Y/6
  1273. else
  1274. if root.RotVelocity.Y/6 < -0.2 then
  1275. torsorotY = -0.2
  1276. elseif root.RotVelocity.Y/6 > 0.2 then
  1277. torsorotY = 0.2
  1278. end
  1279. end
  1280.  
  1281. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  1282. torsorotY2 = root.RotVelocity.Y/8
  1283. else
  1284. if root.RotVelocity.Y/8 < -0.2 then
  1285. torsorotY2 = -0.2
  1286. elseif root.RotVelocity.Y/8 > 0.2 then
  1287. torsorotY2 = 0.2
  1288. end
  1289. end
  1290.  
  1291. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  1292. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  1293.  
  1294. local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4*size, 0))
  1295. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  1296. local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4*size, 0))
  1297. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  1298. local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0))
  1299. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  1300. local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0))
  1301. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  1302. local ray = Ray.new(root.Position,Vector3.new(0, -6, 0))
  1303. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1304.  
  1305. if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
  1306.  
  1307. local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0))
  1308. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  1309.  
  1310. local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0))
  1311. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  1312.  
  1313. if hum.Health > 0 and noidle == false then
  1314. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  1315. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new((change/5)*math.sin(sine/4), 1.5, -.2) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),torsorotY, math.rad(0)+torsorotY), 0.4)
  1316. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles((change/10)*math.cos(sine/2)+0.1,-(change/10)*math.cos(sine/4)-(torsorotY/5),(change/2)*math.sin(sine/4)), 0.1)
  1317. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62-(movement/40)*math.cos(sine/4)/3,(movement/150)+(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5-(movement*2)*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1318. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62+(movement/40)*math.cos(sine/4)/3,(movement/150)-(movement/40)*math.cos(sine/4))*CFrame.Angles(math.rad(-5+(movement*2)*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0-(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1319. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.05+(change/2)*math.cos(sine/2), 0) * CFrame.Angles(math.rad(-(change*20)-(movement/20)*math.cos(sine/2)), torsorotY2+math.rad(0-4*math.cos(sine/4)), torsorotY2+math.rad(0-1*math.cos(sine/4))), 0.1)
  1320. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,(-0.85-(movement/15)*math.cos(sine/4)/2),-0.1+(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)-movement*math.cos(sine/4))+ -(movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1321. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,(-0.85+(movement/15)*math.cos(sine/4)/2),-0.1-(movement/15)*math.cos(sine/4))*CFrame.Angles(math.rad(-10+(change*5)+movement*math.cos(sine/4))+ (movement/10)*math.sin(sine/4),math.rad(0+(movement*2)*math.cos(sine/4)),math.rad(0)), 0.2)
  1322. elseif jumped == true then
  1323. didjump = true
  1324. jumppower = root.Velocity.Y
  1325. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4)
  1326. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3/5),0,0), 0.1)
  1327. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(velocityYFall)), 0.2)
  1328. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55-velocityYFall3/70,0)*CFrame.Angles(math.rad(-velocityYFall3/10),math.rad(0),math.rad(-velocityYFall)), 0.2)
  1329. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(velocityYFall3/10),math.rad(0), math.rad(0)), 0.1)
  1330. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-0.925,0)*CFrame.Angles(math.rad(-35),math.rad(0),math.rad(-2)), 0.2)
  1331. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,0,-0.8)*CFrame.Angles(math.rad(-25),math.rad(0),math.rad(2)), 0.2)
  1332. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5*size then
  1333. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5*size, -.1*size) * CFrame.Angles(math.rad((torso.Velocity*Vector3.new(1, 0, 1)).magnitude/35),0, 0), 0.4)
  1334. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05*math.cos(sine/16)+0.15,0.05*math.cos(sine/32),0.01*math.cos(sine/32)), 0.1)
  1335. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5*size,0.55*size-(0.1*size)*math.cos(sine/16)/3,-0.05-0.1*size*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(-5-5*math.cos(sine/16)),math.rad(-6+2*math.cos(sine/16))), 0.2)
  1336. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5*size,0.55*size-(0.1*size)*math.cos(sine/16)/3,-0.05-0.1*size*math.cos(sine/16))*CFrame.Angles(math.rad(-2+4*math.cos(sine/16)),math.rad(5+5*math.cos(sine/16)),math.rad(6-2*math.cos(sine/16))), 0.2)
  1337. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1*size-(0.1*size)*math.cos(sine/16)-hum.HipHeight, 0) * CFrame.Angles(math.rad(0-2*math.cos(sine/16)),math.rad(0), math.rad(0-1*math.cos(sine/32))), 0.1)
  1338. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0,llegendPoint.Y-lleg.Position.Y,0)*CFrame.new(-0.5*size,0*size+(0.1*size)*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+2*math.cos(sine/16)),math.rad(10+2*math.cos(sine/16)),math.rad(-5+1*math.cos(sine/32))), 0.2)
  1339. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0,rlegendPoint.Y-rleg.Position.Y,0)*CFrame.new(0.5*size,0*size+(0.1*size)*math.cos(sine/16),0)*CFrame.Angles(math.rad(0+2*math.cos(sine/16)),math.rad(-10-2*math.cos(sine/16)),math.rad(5+1*math.cos(sine/32))), 0.2)
  1340. end
  1341. end
  1342. if didjump == true and jumped == false and jumppower < 0 then
  1343. didjump = false
  1344. jumpimpact()
  1345. end
  1346.  
  1347. local chance = math.random(0,10000)/100
  1348. if chance <= 5 + (kills/2) then
  1349. if glitched == false then
  1350. backup = hed.Weld.C1
  1351. end
  1352. if torso:FindFirstChild("MusicRuin") then
  1353. equalizer.HighGain = 0
  1354. equalizer.MidGain = -20
  1355. equalizer.LowGain = -80
  1356. end
  1357. hed.Weld.C1 = glitchedC1
  1358. local glitch_color = Color3.fromHSV(math.random(0,1000)/1000,1,1)
  1359. hed.Color = glitch_color
  1360. torso.Color = glitch_color
  1361. rarm.Color = glitch_color
  1362. larm.Color = glitch_color
  1363. rleg.Color = glitch_color
  1364. lleg.Color = glitch_color
  1365. shake(5)
  1366. glitched = true
  1367. hed.face.Texture = "rbxassetid://127476787"
  1368. sond:Resume()
  1369. else
  1370. if glitched == true then
  1371. glitched = false
  1372. hed.Weld.C1 = backup
  1373. glitchedC1 = backup*CFrame.Angles(math.rad(math.random(-40,40)),math.rad(math.random(-40,40)),math.rad(math.random(-20,20)))
  1374. end
  1375. if torso:FindFirstChild("MusicRuin") then
  1376. equalizer.HighGain = 0
  1377. equalizer.MidGain = 0
  1378. equalizer.LowGain = 0
  1379. end
  1380. hed.BrickColor = skin_color1
  1381. torso.BrickColor = skin_color2
  1382. rarm.BrickColor = skin_color1
  1383. larm.BrickColor = skin_color1
  1384. rleg.BrickColor = skin_color3
  1385. lleg.BrickColor = skin_color3
  1386. hed.face.Texture = "rbxassetid://127476787"
  1387. sond:Pause()
  1388. end
  1389.  
  1390. timeposition = soundz.TimePosition
  1391. sine = sine + change
  1392. hum.Health = math.huge
  1393. hum.MaxHealth = math.huge
  1394. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement