speedyfox66

CHARA()

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