Advertisement
izaquecosta

idk chara edit xd

May 26th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.36 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_color = BrickColor.new("Really black")
  373. p:ClearCharacterAppearance()
  374. --hed:WaitForChild("face"):Destroy()
  375.  
  376. ----------------------------------------------------------------------------
  377. music(540857600)
  378. equalizer = Instance.new("EqualizerSoundEffect",torso:FindFirstChild("MusicRuin"))
  379.  
  380. local size = 1
  381.  
  382. emitters={}
  383. for i,v in pairs(char:GetChildren()) do
  384. if v:IsA("Part") and v.Name ~= "HumanoidRootPart" then
  385. local emitter = Instance.new("ParticleEmitter",v)
  386. emitter.LightEmission = 1
  387. emitter.Transparency = NumberSequence.new(0.95,1)
  388. emitter.Size = NumberSequence.new(2,5)
  389. emitter.SpreadAngle = Vector2.new(360,360)
  390. emitter.Speed = NumberRange.new(1)
  391. emitter.Lifetime = NumberRange.new(0.75)
  392. emitter.Texture = "rbxassetid://133619974"
  393. emitter.Rate = 20
  394. emitter.Color = ColorSequence.new(Color3.new(1,0,0))
  395. emitter.LockedToPart = true
  396. table.insert(emitters,emitter)
  397. end
  398. end
  399. ----------------------------------------------------------------------------------------
  400. hair = Instance.new("Part",char)
  401. hair.Color = Color3.fromRGB(30,10,0)
  402. hair.CanCollide = false
  403. meshhair = Instance.new("SpecialMesh",hair)
  404. meshhair.MeshId = "rbxassetid:/72062185/"
  405. meshhair.Scale = Vector3.new(1,1,1)*1.1
  406. newWeld(hed,hair,0,0.22,0)
  407.  
  408. Model0 = Instance.new("Model")
  409. Part1 = Instance.new("Part")
  410. Part2 = Instance.new("Part")
  411. Part3 = Instance.new("Part")
  412. Part4 = Instance.new("Part")
  413. Part5 = Instance.new("Part")
  414. Part6 = Instance.new("Part")
  415. Part7 = Instance.new("Part")
  416. Model0.Parent = char
  417. Part1.Parent = Model0
  418. Part1.Anchored = true
  419. Part1.CanCollide = false
  420. Part1.Size = Vector3.new(2.02000022, 0.370000094, 1.01999998)
  421. Part1.CFrame = CFrame.new(87.5, 17.1749992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  422. Part1.BottomSurface = Enum.SurfaceType.Smooth
  423. Part1.TopSurface = Enum.SurfaceType.Smooth
  424. Part1.Position = Vector3.new(87.5, 17.1749992, 83.5)
  425. Part1.Color = Color3.new(0, 1, 0)
  426. Part2.Parent = Model0
  427. Part2.Anchored = true
  428. Part2.CanCollide = false
  429. Part2.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983)
  430. Part2.CFrame = CFrame.new(88.0500031, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  431. Part2.BottomSurface = Enum.SurfaceType.Smooth
  432. Part2.TopSurface = Enum.SurfaceType.Smooth
  433. Part2.Position = Vector3.new(88.0500031, 18.9549999, 83.2799988)
  434. Part2.Color = Color3.new(0, 1, 0)
  435. Part3.Parent = Model0
  436. Part3.Anchored = true
  437. Part3.CanCollide = false
  438. Part3.Size = Vector3.new(2.02000022, 0.590000093, 1.01999998)
  439. Part3.CFrame = CFrame.new(87.5, 17.6550007, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  440. Part3.BottomSurface = Enum.SurfaceType.Smooth
  441. Part3.TopSurface = Enum.SurfaceType.Smooth
  442. Part3.Position = Vector3.new(87.5, 17.6550007, 83.5)
  443. Part3.Color = Color3.new(0.992157, 0.917647, 0.552941)
  444. Part4.Parent = Model0
  445. Part4.Anchored = true
  446. Part4.CanCollide = false
  447. Part4.Size = Vector3.new(2.02000022, 0.110000037, 0.439999968)
  448. Part4.CFrame = CFrame.new(87.5, 18.9549999, 83.7900009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  449. Part4.BottomSurface = Enum.SurfaceType.Smooth
  450. Part4.TopSurface = Enum.SurfaceType.Smooth
  451. Part4.Position = Vector3.new(87.5, 18.9549999, 83.7900009)
  452. Part4.Color = Color3.new(0, 1, 0)
  453. Part5.Parent = Model0
  454. Part5.Anchored = true
  455. Part5.CanCollide = false
  456. Part5.Size = Vector3.new(0.920000076, 0.110000037, 0.579999983)
  457. Part5.CFrame = CFrame.new(86.9499969, 18.9549999, 83.2799988, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  458. Part5.BottomSurface = Enum.SurfaceType.Smooth
  459. Part5.TopSurface = Enum.SurfaceType.Smooth
  460. Part5.Position = Vector3.new(86.9499969, 18.9549999, 83.2799988)
  461. Part5.Color = Color3.new(0, 1, 0)
  462. Part6.Name = "asd"
  463. Part6.Parent = Model0
  464. Part6.Transparency = 1
  465. Part6.Anchored = true
  466. Part6.CanCollide = false
  467. Part6.Size = Vector3.new(2, 2, 1)
  468. Part6.CFrame = CFrame.new(87.5, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  469. Part6.BottomSurface = Enum.SurfaceType.Smooth
  470. Part6.TopSurface = Enum.SurfaceType.Smooth
  471. Part6.Position = Vector3.new(87.5, 18, 83.5)
  472. Part7.Parent = Model0
  473. Part7.Anchored = true
  474. Part7.CanCollide = false
  475. Part7.Size = Vector3.new(2.02000022, 0.949999988, 1.01999998)
  476. Part7.CFrame = CFrame.new(87.5, 18.4249992, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  477. Part7.BottomSurface = Enum.SurfaceType.Smooth
  478. Part7.TopSurface = Enum.SurfaceType.Smooth
  479. Part7.Position = Vector3.new(87.5, 18.4249992, 83.5)
  480. Part7.Color = Color3.new(0, 1, 0)
  481. weld(Model0)
  482. newWeld(torso,Model0.asd)
  483.  
  484. Model0 = Instance.new("Model")
  485. Part1 = Instance.new("Part")
  486. Part2 = Instance.new("Part")
  487. Model0.Parent = char
  488. Part1.Parent = Model0
  489. Part1.Anchored = true
  490. Part1.CanCollide = false
  491. Part1.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998)
  492. Part1.CFrame = CFrame.new(49.5, 18.0999985, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  493. Part1.BottomSurface = Enum.SurfaceType.Smooth
  494. Part1.TopSurface = Enum.SurfaceType.Smooth
  495. Part1.Position = Vector3.new(49.5, 18.0999985, 83.5)
  496. Part1.Color = Color3.new(0, 1, 0)
  497. Part2.Name = "asd"
  498. Part2.Parent = Model0
  499. Part2.Transparency = 1
  500. Part2.Anchored = true
  501. Part2.CanCollide = false
  502. Part2.Size = Vector3.new(1, 2, 1)
  503. Part2.CFrame = CFrame.new(49.5, 18.0450001, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  504. Part2.BottomSurface = Enum.SurfaceType.Smooth
  505. Part2.TopSurface = Enum.SurfaceType.Smooth
  506. Part2.Position = Vector3.new(49.5, 18.0450001, 83.5)
  507. weld(Model0)
  508. Model1=Model0:Clone()
  509. Model1.Parent=char
  510. newWeld(larm,Model0.asd,0,0,0)
  511. newWeld(rarm,Model1.asd,0,0,0)
  512.  
  513. Model0 = Instance.new("Model")
  514. Part1 = Instance.new("Part")
  515. Part2 = Instance.new("Part")
  516. Part3 = Instance.new("Part")
  517. Model0.Parent = char
  518. Part1.Parent = Model0
  519. Part1.Anchored = true
  520. Part1.CanCollide = false
  521. Part1.Size = Vector3.new(1.03999996, 0.27000007, 1.03999996)
  522. Part1.CFrame = CFrame.new(28, 17.125, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  523. Part1.BottomSurface = Enum.SurfaceType.Smooth
  524. Part1.TopSurface = Enum.SurfaceType.Smooth
  525. Part1.Position = Vector3.new(28, 17.125, 83.5)
  526. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  527. Part2.Parent = Model0
  528. Part2.Anchored = true
  529. Part2.CanCollide = false
  530. Part2.Size = Vector3.new(1.01999998, 1.91000009, 1.01999998)
  531. Part2.CFrame = CFrame.new(28, 18.0550003, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  532. Part2.BottomSurface = Enum.SurfaceType.Smooth
  533. Part2.TopSurface = Enum.SurfaceType.Smooth
  534. Part2.Position = Vector3.new(28, 18.0550003, 83.5)
  535. Part2.Color = Color3.new(0.411765, 0.25098, 0.156863)
  536. Part3.Name = "asd"
  537. Part3.Parent = Model0
  538. Part3.Transparency = 1
  539. Part3.Anchored = true
  540. Part3.CanCollide = false
  541. Part3.Size = Vector3.new(1, 2, 1)
  542. Part3.CFrame = CFrame.new(28, 18, 83.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  543. Part3.BottomSurface = Enum.SurfaceType.Smooth
  544. Part3.TopSurface = Enum.SurfaceType.Smooth
  545. Part3.Position = Vector3.new(28, 18, 83.5)
  546. weld(Model0)
  547. Model1=Model0:Clone()
  548. Model1.Parent=char
  549. newWeld(lleg,Model0.asd,0,0,0)
  550. newWeld(rleg,Model1.asd,0,0,0)
  551.  
  552. ----------------------------------------------------------------------------
  553. HitBox = Instance.new("Part",DebrisModel)
  554. HitBox.Size = Vector3.new(0.5,0.5,2.45)
  555. HitBox.CanCollide = false
  556. HitBox:BreakJoints()
  557. HitBox.Transparency = 1
  558. newWeld(rarm,HitBox,0,-0.95,-1.9)
  559. atch0 = Instance.new("Attachment",HitBox)
  560. atch0.Position = Vector3.new(0,0,HitBox.Size.Z/2)
  561. atch1 = Instance.new("Attachment",HitBox)
  562. atch1.Position = Vector3.new(0,0,-HitBox.Size.Z/2)
  563. trail = Instance.new("Trail",HitBox)
  564. trail.Attachment0 = atch0
  565. trail.Attachment1 = atch1
  566. trail.Lifetime = 0.2
  567. trail.Enabled = true
  568. trail.LightEmission = 1
  569. trail.LightInfluence = 0
  570. trail.Color = ColorSequence.new(Color3.new(1,0,0))
  571. trail.Transparency = NumberSequence.new(0,1)
  572.  
  573. function ded(model)
  574. kills = kills + 1
  575. model.Archivable = true
  576. model.Head:ClearAllChildren()
  577. local clone = model:Clone()
  578. clone.Parent = workspace
  579. clone.Name = "DED"
  580. model:Destroy()
  581. clone:FindFirstChildOfClass("Humanoid"):Destroy()
  582. local emitters={}
  583. for i,v in pairs(clone:GetChildren()) do
  584. if v:IsA("Accoutrement") then
  585. v:Destroy()
  586. end
  587. if v:IsA("Part") then
  588. v.Anchored = true
  589. v.CanCollide = false
  590. v.Transparency = 1
  591. local emitter = Instance.new("ParticleEmitter",v)
  592. emitter.LightEmission = 1
  593. emitter.Transparency = NumberSequence.new(0,1)
  594. emitter.Size = NumberSequence.new(0,0.8)
  595. emitter.SpreadAngle = Vector2.new(360,360)
  596. emitter.Speed = NumberRange.new(0.5)
  597. emitter.Lifetime = NumberRange.new(0.75)
  598. emitter.Texture = "rbxassetid://744949545"
  599. emitter.Rate = 20
  600. emitter.Color = ColorSequence.new(Color3.new(1,1,1))
  601. emitter.LockedToPart = false
  602. table.insert(emitters,emitter)
  603. end
  604. end
  605. delay(1, function()
  606. sound(427025525,clone.Head.Position,10,1)
  607. for i,v in pairs(emitters) do
  608. v.Speed = NumberRange.new(4)
  609. v.Acceleration = Vector3.new(0,10,0)
  610. delay(0.5, function()
  611. v.Enabled = false
  612. debris:AddItem(clone,0.75)
  613. end)
  614. end
  615. end)
  616. end
  617.  
  618. local alreadytouched = {}
  619. HitBox.Touched:connect(function(ht)
  620. coroutine.resume(coroutine.create(function()
  621. local hit = ht.Parent
  622. if mode == "determination" and hit.Name ~= "DED" and attacking == true and checkIfNotPlayer(ht) and hit:FindFirstChildOfClass("Humanoid") and hit:FindFirstChildOfClass("Humanoid").Health > 0 then
  623. local hurt = true
  624. for i,v in pairs(alreadytouched) do if v == hit then hurt = false end end
  625. if hurt == true then
  626. table.insert(alreadytouched,hit)
  627. sound(388826051,ht.Position,10,1)
  628. ded(hit)
  629. end
  630. end
  631. end))
  632. end)
  633.  
  634. function createknife()
  635. Model0 = Instance.new("Model")
  636. Part1 = Instance.new("Part")
  637. BlockMesh2 = Instance.new("BlockMesh")
  638. Part3 = Instance.new("Part")
  639. BlockMesh4 = Instance.new("BlockMesh")
  640. Part5 = Instance.new("Part")
  641. Part6 = Instance.new("Part")
  642. BlockMesh7 = Instance.new("BlockMesh")
  643. Part8 = Instance.new("Part")
  644. Part9 = Instance.new("Part")
  645. Part10 = Instance.new("Part")
  646. SpecialMesh11 = Instance.new("SpecialMesh")
  647. Part12 = Instance.new("Part")
  648. Model0.Parent = char
  649. Part1.Parent = Model0
  650. Part1.Anchored = true
  651. Part1.CanCollide = false
  652. Part1.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007)
  653. Part1.CFrame = CFrame.new(49.5, 20.7350044, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  654. Part1.BottomSurface = Enum.SurfaceType.Smooth
  655. Part1.TopSurface = Enum.SurfaceType.Smooth
  656. Part1.Position = Vector3.new(49.5, 20.7350044, 52.3199997)
  657. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  658. BlockMesh2.Parent = Part1
  659. BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  660. BlockMesh2.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  661. Part3.Parent = Model0
  662. Part3.Anchored = true
  663. Part3.CanCollide = false
  664. Part3.Size = Vector3.new(0.220000014, 0.0500000007, 0.0500000007)
  665. Part3.CFrame = CFrame.new(49.5, 20.6250038, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  666. Part3.BottomSurface = Enum.SurfaceType.Smooth
  667. Part3.TopSurface = Enum.SurfaceType.Smooth
  668. Part3.Position = Vector3.new(49.5, 20.6250038, 53.6199989)
  669. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  670. BlockMesh4.Parent = Part3
  671. BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  672. BlockMesh4.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  673. Part5.Parent = Model0
  674. Part5.Anchored = true
  675. Part5.CanCollide = false
  676. Part5.Size = Vector3.new(0.159999996, 0.400000006, 1.70000005)
  677. Part5.CFrame = CFrame.new(49.5, 20.5750046, 51.4300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  678. Part5.BottomSurface = Enum.SurfaceType.Smooth
  679. Part5.TopSurface = Enum.SurfaceType.Smooth
  680. Part5.Position = Vector3.new(49.5, 20.5750046, 51.4300003)
  681. Part5.Color = Color3.new(1, 0, 0)
  682. Part6.Parent = Model0
  683. Part6.Anchored = true
  684. Part6.CanCollide = false
  685. Part6.Size = Vector3.new(0.280000031, 0.0500000007, 0.0500000007)
  686. Part6.CFrame = CFrame.new(49.5, 20.4150047, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  687. Part6.BottomSurface = Enum.SurfaceType.Smooth
  688. Part6.TopSurface = Enum.SurfaceType.Smooth
  689. Part6.Position = Vector3.new(49.5, 20.4150047, 52.3199997)
  690. Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  691. BlockMesh7.Parent = Part6
  692. BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  693. BlockMesh7.Scale = Vector3.new(1, 0.399999797, 0.400000781)
  694. Part8.Name = "asd"
  695. Part8.Parent = Model0
  696. Part8.Anchored = true
  697. Part8.CanCollide = false
  698. Part8.Size = Vector3.new(0.200000003, 0.200000003, 1.30000007)
  699. Part8.CFrame = CFrame.new(49.5, 20.6250038, 52.9300003, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  700. Part8.BottomSurface = Enum.SurfaceType.Smooth
  701. Part8.TopSurface = Enum.SurfaceType.Smooth
  702. Part8.Position = Vector3.new(49.5, 20.6250038, 52.9300003)
  703. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  704. Part9.Parent = Model0
  705. Part9.Anchored = true
  706. Part9.CanCollide = false
  707. Part9.Size = Vector3.new(0.200000003, 0.25999999, 0.100000039)
  708. Part9.CFrame = CFrame.new(49.5, 20.595005, 53.6199989, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  709. Part9.BottomSurface = Enum.SurfaceType.Smooth
  710. Part9.TopSurface = Enum.SurfaceType.Smooth
  711. Part9.Position = Vector3.new(49.5, 20.595005, 53.6199989)
  712. Part9.Color = Color3.new(0.105882, 0.164706, 0.207843)
  713. Part10.Parent = Model0
  714. Part10.Rotation = Vector3.new(0, 0, 180)
  715. Part10.Anchored = true
  716. Part10.CanCollide = false
  717. Part10.Size = Vector3.new(0.159999996, 0.400000006, 0.800000012)
  718. 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)
  719. Part10.BottomSurface = Enum.SurfaceType.Smooth
  720. Part10.TopSurface = Enum.SurfaceType.Smooth
  721. Part10.Position = Vector3.new(49.5, 20.5750046, 50.1800003)
  722. Part10.Color = Color3.new(1, 0, 0)
  723. SpecialMesh11.Parent = Part10
  724. SpecialMesh11.MeshType = Enum.MeshType.Wedge
  725. Part12.Parent = Model0
  726. Part12.Anchored = true
  727. Part12.CanCollide = false
  728. Part12.Size = Vector3.new(0.25999999, 0.460000008, 0.100000039)
  729. Part12.CFrame = CFrame.new(49.5, 20.5750046, 52.3199997, 0.99999994, 0, 0, 0, 1, -5.56362707e-08, 0, 5.56362707e-08, 1)
  730. Part12.BottomSurface = Enum.SurfaceType.Smooth
  731. Part12.TopSurface = Enum.SurfaceType.Smooth
  732. Part12.Position = Vector3.new(49.5, 20.5750046, 52.3199997)
  733. Part12.Color = Color3.new(0.105882, 0.164706, 0.207843)
  734. weld(Model0)
  735. for i,v in pairs(Model0:GetChildren()) do
  736. if v:IsA("Part") and v.Color == Color3.new(1,0,0) then
  737. v.Material = Enum.Material.Neon
  738. end
  739. end
  740. return Model0
  741. end
  742.  
  743. knife = createknife()
  744. newWeld(rarm,knife.asd,0,-1,0)
  745.  
  746. ----------------------------------------------------------------------------------------
  747.  
  748. function createpistol()
  749. Model0 = Instance.new("Model")
  750. Part1 = Instance.new("Part")
  751. BlockMesh2 = Instance.new("BlockMesh")
  752. Part3 = Instance.new("Part")
  753. Part4 = Instance.new("Part")
  754. Part5 = Instance.new("Part")
  755. Part6 = Instance.new("Part")
  756. Part7 = Instance.new("Part")
  757. Part8 = Instance.new("Part")
  758. Part9 = Instance.new("Part")
  759. Part10 = Instance.new("Part")
  760. Part11 = Instance.new("Part")
  761. Part12 = Instance.new("Part")
  762. Part13 = Instance.new("Part")
  763. Part14 = Instance.new("Part")
  764. Part15 = Instance.new("Part")
  765. Part16 = Instance.new("Part")
  766. Part17 = Instance.new("Part")
  767. Part18 = Instance.new("Part")
  768. Part19 = Instance.new("Part")
  769. Model0.Name = "Pistol"
  770. Model0.Parent = char
  771. Part1.Name = "ShootPos"
  772. Part1.Parent = Model0
  773. Part1.BrickColor = BrickColor.new("Really black")
  774. Part1.Anchored = true
  775. Part1.CanCollide = false
  776. Part1.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007)
  777. Part1.CFrame = CFrame.new(-90, 10.5000019, 13.8957434, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  778. Part1.BottomSurface = Enum.SurfaceType.Smooth
  779. Part1.TopSurface = Enum.SurfaceType.Smooth
  780. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  781. Part1.Position = Vector3.new(-90, 10.5000019, 13.8957434)
  782. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  783. BlockMesh2.Parent = Part1
  784. BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988)
  785. BlockMesh2.Scale = Vector3.new(1, 1, 0.199999988)
  786. Part3.Parent = Model0
  787. Part3.BrickColor = BrickColor.new("Pearl")
  788. Part3.Anchored = true
  789. Part3.CanCollide = false
  790. Part3.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007)
  791. Part3.CFrame = CFrame.new(-90.0999985, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  792. Part3.BottomSurface = Enum.SurfaceType.Smooth
  793. Part3.TopSurface = Enum.SurfaceType.Smooth
  794. Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
  795. Part3.Position = Vector3.new(-90.0999985, 10.3750019, 13.8757429)
  796. Part3.Color = Color3.new(0.905882, 0.905882, 0.92549)
  797. Part4.Parent = Model0
  798. Part4.BrickColor = BrickColor.new("Really black")
  799. Part4.Anchored = true
  800. Part4.CanCollide = false
  801. Part4.Size = Vector3.new(0.300000012, 0.349999994, 0.0500000007)
  802. Part4.CFrame = CFrame.new(-90, 10.2750025, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  803. Part4.BottomSurface = Enum.SurfaceType.Smooth
  804. Part4.TopSurface = Enum.SurfaceType.Smooth
  805. Part4.Color = Color3.new(0.905882, 0.905882, 0.92549)
  806. Part4.Position = Vector3.new(-90, 10.2750025, 13.8757429)
  807. Part4.Color = Color3.new(0.905882, 0.905882, 0.92549)
  808. Part5.Parent = Model0
  809. Part5.BrickColor = BrickColor.new("Really black")
  810. Part5.Rotation = Vector3.new(15, 0, 0)
  811. Part5.Anchored = true
  812. Part5.CanCollide = false
  813. Part5.Size = Vector3.new(0.200000003, 0.25, 0.150000006)
  814. Part5.CFrame = CFrame.new(-90, 10.4379425, 15.8274469, 1, 0, 0, 0, 0.965925753, -0.258819252, 0, 0.258819252, 0.965925753)
  815. Part5.BottomSurface = Enum.SurfaceType.Smooth
  816. Part5.TopSurface = Enum.SurfaceType.Smooth
  817. Part5.Color = Color3.new(0.905882, 0.905882, 0.92549)
  818. Part5.Position = Vector3.new(-90, 10.4379425, 15.8274469)
  819. Part5.Orientation = Vector3.new(15, 0, 0)
  820. Part5.Color = Color3.new(0.905882, 0.905882, 0.92549)
  821. Part6.Parent = Model0
  822. Part6.BrickColor = BrickColor.new("Really black")
  823. Part6.Anchored = true
  824. Part6.CanCollide = false
  825. Part6.Size = Vector3.new(0.300000012, 0.550000012, 1.89999998)
  826. Part6.CFrame = CFrame.new(-90, 10.3750019, 14.8507433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  827. Part6.BottomSurface = Enum.SurfaceType.Smooth
  828. Part6.TopSurface = Enum.SurfaceType.Smooth
  829. Part6.Color = Color3.new(0.905882, 0.905882, 0.92549)
  830. Part6.Position = Vector3.new(-90, 10.3750019, 14.8507433)
  831. Part6.Color = Color3.new(0.905882, 0.905882, 0.92549)
  832. Part7.Parent = Model0
  833. Part7.BrickColor = BrickColor.new("Really black")
  834. Part7.Anchored = true
  835. Part7.CanCollide = false
  836. Part7.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  837. Part7.CFrame = CFrame.new(-90.0999985, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  838. Part7.BottomSurface = Enum.SurfaceType.Smooth
  839. Part7.TopSurface = Enum.SurfaceType.Smooth
  840. Part7.Color = Color3.new(0.905882, 0.905882, 0.92549)
  841. Part7.Position = Vector3.new(-90.0999985, 10.6750021, 15.6257429)
  842. Part7.Color = Color3.new(0.905882, 0.905882, 0.92549)
  843. Part8.Parent = Model0
  844. Part8.BrickColor = BrickColor.new("Really Black")
  845. Part8.Rotation = Vector3.new(-15, 0, 0)
  846. Part8.Anchored = true
  847. Part8.CanCollide = false
  848. Part8.Size = Vector3.new(0.220000014, 0.5, 0.209999993)
  849. Part8.CFrame = CFrame.new(-90, 9.71499538, 15.4898481, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872)
  850. Part8.BottomSurface = Enum.SurfaceType.Smooth
  851. Part8.TopSurface = Enum.SurfaceType.Smooth
  852. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  853. Part8.Position = Vector3.new(-90, 9.71499538, 15.4898481)
  854. Part8.Orientation = Vector3.new(-15, 0, 0)
  855. Part8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  856. Part9.Parent = Model0
  857. Part9.BrickColor = BrickColor.new("Really black")
  858. Part9.Anchored = true
  859. Part9.CanCollide = false
  860. Part9.Size = Vector3.new(0.100000001, 0.550000012, 0.0500000007)
  861. Part9.CFrame = CFrame.new(-89.9000015, 10.3750019, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  862. Part9.BottomSurface = Enum.SurfaceType.Smooth
  863. Part9.TopSurface = Enum.SurfaceType.Smooth
  864. Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
  865. Part9.Position = Vector3.new(-89.9000015, 10.3750019, 13.8757429)
  866. Part9.Color = Color3.new(0.905882, 0.905882, 0.92549)
  867. Part10.Parent = Model0
  868. Part10.BrickColor = BrickColor.new("Really black")
  869. Part10.Anchored = true
  870. Part10.CanCollide = false
  871. Part10.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  872. Part10.CFrame = CFrame.new(-89.9000015, 10.6750021, 15.6257429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  873. Part10.BottomSurface = Enum.SurfaceType.Smooth
  874. Part10.TopSurface = Enum.SurfaceType.Smooth
  875. Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
  876. Part10.Position = Vector3.new(-89.9000015, 10.6750021, 15.6257429)
  877. Part10.Color = Color3.new(0.905882, 0.905882, 0.92549)
  878. Part11.Parent = Model0
  879. Part11.BrickColor = BrickColor.new("Really black")
  880. Part11.Anchored = true
  881. Part11.CanCollide = false
  882. Part11.Size = Vector3.new(0.200000003, 0.150000006, 0.600000024)
  883. Part11.CFrame = CFrame.new(-90, 9.37500191, 15.6007433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  884. Part11.BottomSurface = Enum.SurfaceType.Smooth
  885. Part11.TopSurface = Enum.SurfaceType.Smooth
  886. Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
  887. Part11.Position = Vector3.new(-90, 9.37500191, 15.6007433)
  888. Part11.Color = Color3.new(0.905882, 0.905882, 0.92549)
  889. Part12.Parent = Model0
  890. Part12.BrickColor = BrickColor.new("Really black")
  891. Part12.Rotation = Vector3.new(-30, 0, 0)
  892. Part12.Anchored = true
  893. Part12.CanCollide = false
  894. Part12.Size = Vector3.new(0.100000001, 0.150000006, 0.0500000007)
  895. Part12.CFrame = CFrame.new(-90, 9.97165203, 15.1132431, 1, 0, 0, 0, 0.866025448, 0.5, 0, -0.5, 0.866025448)
  896. Part12.BottomSurface = Enum.SurfaceType.Smooth
  897. Part12.TopSurface = Enum.SurfaceType.Smooth
  898. Part12.Color = Color3.new(0.905882, 0.905882, 0.92549)
  899. Part12.Position = Vector3.new(-90, 9.97165203, 15.1132431)
  900. Part12.Orientation = Vector3.new(-30, 0, 0)
  901. Part12.Color = Color3.new(0.905882, 0.905882, 0.92549)
  902. Part13.Parent = Model0
  903. Part13.BrickColor = BrickColor.new("Really black")
  904. Part13.Anchored = true
  905. Part13.CanCollide = false
  906. Part13.Size = Vector3.new(0.300000012, 0.100000001, 0.0500000007)
  907. Part13.CFrame = CFrame.new(-90, 10.6000023, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  908. Part13.BottomSurface = Enum.SurfaceType.Smooth
  909. Part13.TopSurface = Enum.SurfaceType.Smooth
  910. Part13.Color = Color3.new(0.905882, 0.905882, 0.92549)
  911. Part13.Position = Vector3.new(-90, 10.6000023, 13.8757429)
  912. Part13.Color = Color3.new(0.905882, 0.905882, 0.92549)
  913. Part14.Parent = Model0
  914. Part14.BrickColor = BrickColor.new("Pearl")
  915. Part14.Rotation = Vector3.new(-30, 0, 0)
  916. Part14.Anchored = true
  917. Part14.CanCollide = false
  918. Part14.Size = Vector3.new(0.200000003, 0.100000001, 0.25)
  919. Part14.CFrame = CFrame.new(-90, 10.5216522, 15.9065447, 1, 0, 0, 0, 0.866025329, 0.49999997, 0, -0.49999997, 0.866025329)
  920. Part14.BottomSurface = Enum.SurfaceType.Smooth
  921. Part14.TopSurface = Enum.SurfaceType.Smooth
  922. Part14.Color = Color3.new(0.905882, 0.905882, 0.92549)
  923. Part14.Position = Vector3.new(-90, 10.5216522, 15.9065447)
  924. Part14.Orientation = Vector3.new(-30, 0, 0)
  925. Part14.Color = Color3.new(0.905882, 0.905882, 0.92549)
  926. Part15.Parent = Model0
  927. Part15.BrickColor = BrickColor.new("White")
  928. Part15.Rotation = Vector3.new(-105, 0, 0)
  929. Part15.Anchored = true
  930. Part15.CanCollide = false
  931. Part15.Size = Vector3.new(0.100000001, 0.200000003, 0.0500000007)
  932. Part15.CFrame = CFrame.new(-90, 9.92812252, 15.2373915, 1, 0, 0, 0, -0.258819371, 0.965925813, 0, -0.965925813, -0.258819371)
  933. Part15.BottomSurface = Enum.SurfaceType.Smooth
  934. Part15.TopSurface = Enum.SurfaceType.Smooth
  935. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  936. Part15.Position = Vector3.new(-90, 9.92812252, 15.2373915)
  937. Part15.Orientation = Vector3.new(-75, 180, 180)
  938. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  939. Part16.Name = "asd"
  940. Part16.Parent = Model0
  941. Part16.BrickColor = BrickColor.new("Pearl")
  942. Part16.Rotation = Vector3.new(-15, 0, 0)
  943. Part16.Anchored = true
  944. Part16.CanCollide = false
  945. Part16.Size = Vector3.new(0.200000003, 1.14999998, 0.400000006)
  946. Part16.CFrame = CFrame.new(-90, 9.93709087, 15.5425692, 1, 0, 0, 0, 0.965925872, 0.258818835, 0, -0.258818835, 0.965925872)
  947. Part16.BottomSurface = Enum.SurfaceType.Smooth
  948. Part16.TopSurface = Enum.SurfaceType.Smooth
  949. Part16.Color = Color3.new(0.905882, 0.905882, 0.92549)
  950. Part16.Position = Vector3.new(-90, 9.93709087, 15.5425692)
  951. Part16.Orientation = Vector3.new(-15, 0, 0)
  952. Part16.Color = Color3.new(0.905882, 0.905882, 0.92549)
  953. Part17.Parent = Model0
  954. Part17.BrickColor = BrickColor.new("Pearl")
  955. Part17.Anchored = true
  956. Part17.CanCollide = false
  957. Part17.Size = Vector3.new(0.100000001, 0.100000001, 0.0500000007)
  958. Part17.CFrame = CFrame.new(-90, 10.0500021, 15.0757437, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  959. Part17.BottomSurface = Enum.SurfaceType.Smooth
  960. Part17.TopSurface = Enum.SurfaceType.Smooth
  961. Part17.Color = Color3.new(0.905882, 0.905882, 0.92549)
  962. Part17.Position = Vector3.new(-90, 10.0500021, 15.0757437)
  963. Part17.Color = Color3.new(0.905882, 0.905882, 0.92549)
  964. Part18.Parent = Model0
  965. Part18.BrickColor = BrickColor.new("Pearl")
  966. Part18.Anchored = true
  967. Part18.CanCollide = false
  968. Part18.Size = Vector3.new(0.100000001, 0.0500000007, 0.0500000007)
  969. Part18.CFrame = CFrame.new(-90, 10.6750021, 13.8757429, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  970. Part18.BottomSurface = Enum.SurfaceType.Smooth
  971. Part18.TopSurface = Enum.SurfaceType.Smooth
  972. Part18.Color = Color3.new(0.905882, 0.905882, 0.92549)
  973. Part18.Position = Vector3.new(-90, 10.6750021, 13.8757429)
  974. Part18.Color = Color3.new(0.905882, 0.905882, 0.92549)
  975. Part19.Parent = Model0
  976. Part19.BrickColor = BrickColor.new("Pearl")
  977. Part19.Anchored = true
  978. Part19.CanCollide = false
  979. Part19.Size = Vector3.new(0.400000006, 0.200000003, 1.05000007)
  980. Part19.CFrame = CFrame.new(-90, 10.1500015, 14.4757433, 1, 0, 0, 0, 1, -2.08616257e-07, 0, 2.08616257e-07, 1)
  981. Part19.BottomSurface = Enum.SurfaceType.Smooth
  982. Part19.TopSurface = Enum.SurfaceType.Smooth
  983. Part19.Color = Color3.new(0.905882, 0.905882, 0.92549)
  984. Part19.Position = Vector3.new(-90, 10.1500015, 14.4757433)
  985. Part19.Color = Color3.new(0.905882, 0.905882, 0.92549)
  986. for i,v in pairs(Model0:GetChildren()) do
  987. if v:IsA("Part") then
  988. v.Color = Color3.new(1,1,0)
  989. v.Material = Enum.Material.Neon
  990. v.Transparency = 0
  991. v.CanCollide = false
  992. end
  993. end
  994. weld(Model0)
  995. return Model0
  996. end
  997.  
  998. mode = "determination"
  999. function justice()
  1000. mode = "justice"
  1001. for i=1,5 do rs:wait()
  1002. local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000)
  1003. 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)
  1004. end
  1005. knife:Destroy()
  1006. pistol = createpistol()
  1007. newWeld(rarm,pistol.asd,0,-1,0)
  1008. pistol.asd.Weld.C1 = CFrame.Angles(math.rad(110),0,0)
  1009. end
  1010.  
  1011. function determination()
  1012. mode = "determination"
  1013. for i=1,5 do rs:wait()
  1014. local asd = Vector3.new(math.random(-10000,10000)/10000,math.random(-10000,10000)/10000,math.random(-10000,10000)/10000)
  1015. 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)
  1016. end
  1017. pistol:Destroy()
  1018. knife = createknife()
  1019. newWeld(rarm,knife.asd,0,-1,0)
  1020. end
  1021.  
  1022. debounce = false
  1023. mouse.KeyDown:connect(function(key)
  1024. if debounce == false then
  1025. debounce = true
  1026. if key == "e" then
  1027. sound(462606062,root.Position,10,1)
  1028. if mode == "determination" then
  1029. justice()
  1030. elseif mode == "justice" then
  1031. determination()
  1032. end
  1033. end
  1034. delay(0.3,function() debounce = false end)
  1035. end
  1036. end)
  1037.  
  1038. ----------------------------------------------------------------------------------------
  1039.  
  1040. function slash()
  1041. local spd = 0.2
  1042. for i=1,15 do rs:wait()
  1043. 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)
  1044. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(-30),math.rad(0)), spd)
  1045. 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)
  1046. 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)
  1047. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(-50),math.rad(10)), spd)
  1048. 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)
  1049. 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)
  1050. end
  1051. sound(357417055,root.Position,10,1)
  1052. attacking = true
  1053. local spd = 0.4
  1054. for i=1,5 do rs:wait()
  1055. 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)
  1056. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(0)), spd)
  1057. 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)
  1058. 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)
  1059. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(80),math.rad(-20)), spd)
  1060. 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)
  1061. 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)
  1062. end
  1063. end
  1064.  
  1065. mouse.Button1Down:connect(function()
  1066. if debounce == false and mode == "determination" then
  1067. alreadytouched = {}
  1068. noidle = true
  1069. debounce = true
  1070. slash()
  1071. attacking = false
  1072. noidle = false
  1073. delay(0.05,function() debounce = false end)
  1074. end
  1075. end)
  1076.  
  1077. -----------------------------
  1078. local jumped = false
  1079. function boom()
  1080. freeze = true
  1081. sound(446961725,root.Position,10,1)
  1082. local bg = Instance.new("BodyGyro",root)
  1083. bg.Name = "lolnochara"
  1084. bg.P = 10000
  1085. bg.D = 100
  1086. bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
  1087. if jumped == false then
  1088. root.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1089. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1090. else
  1091. root.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1092. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1093. end
  1094.  
  1095. local spd = 0.2
  1096. for i=1,20 do rs:wait()
  1097. if jumped == false then
  1098. bg.CFrame = CFrame.new(root.Position,Vector3.new(mouse.Hit.x,root.Position.Y,mouse.Hit.z))
  1099. else
  1100. bg.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1101. end
  1102. 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)
  1103. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1104. 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)
  1105. 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)
  1106. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1107. 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)
  1108. 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)
  1109. end
  1110.  
  1111. bg:Destroy()
  1112.  
  1113. sound(470245800,root.Position,10,1)
  1114.  
  1115. local Part0 = Instance.new("Part",DebrisModel)
  1116. Part0.Name = "Bullet"
  1117. Part0.Material = Enum.Material.Neon
  1118. Part0.Color = Color3.new(1,1,0)
  1119. Part0.Anchored = true
  1120. local mesh = Instance.new("SpecialMesh",Part0)
  1121. mesh.MeshType = Enum.MeshType.Brick
  1122. Part0.CanCollide = false
  1123. local Position = rarm.Position
  1124. local Target = mouse.Hit.p
  1125. local direction = Target - Position
  1126. local direction = computeDirection(direction)
  1127. local ray = Ray.new(Position, (Target-Position).unit*1048)
  1128. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1129. Part0.Size = Vector3.new(5,1,5)
  1130. mesh.Scale = Vector3.new(1,(Position-endPoint).magnitude+5,1)
  1131. local pos = Position + (direction * (mesh.Scale.Y/2))
  1132. Part0.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles((math.pi/2)+math.rad(180), 0, 0)
  1133. local loop = nil
  1134. local i = 0
  1135. rs:connect(function()
  1136. local lole = (i/10)
  1137. mesh.Scale = Vector3.new(lole,mesh.Scale.Y,lole)
  1138. Part0.Transparency = Part0.Transparency + 0.1
  1139. i = i + 1
  1140. if Part0.Transparency >= 1 then
  1141. Part0:Destroy()
  1142. end
  1143. end)
  1144.  
  1145. if part and part.Parent:FindFirstChildOfClass("Humanoid") and checkIfNotPlayer(part) == true then
  1146. coroutine.resume(coroutine.create(function()
  1147. sound(388826051,part.Position,10,1)
  1148. ded(part.Parent)
  1149. end))
  1150. end
  1151.  
  1152. local spd = 0.5
  1153. for i=1,10 do rs:wait()
  1154. 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)
  1155. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.new(0,0,0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1156. 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)
  1157. 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)
  1158. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) *CFrame.Angles(math.rad(0),math.rad(90),math.rad(0)), spd)
  1159. 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)
  1160. 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)
  1161. end
  1162.  
  1163. freeze = false
  1164.  
  1165. end
  1166.  
  1167. mouse.Button1Down:connect(function()
  1168. if debounce == false and mode == "justice" then
  1169. alreadytouched = {}
  1170. noidle = true
  1171. debounce = true
  1172. boom()
  1173. attacking = false
  1174. noidle = false
  1175. delay(0.05,function() debounce = false end)
  1176. end
  1177. end)
  1178.  
  1179. ----------------------------------------------------------------------------------------
  1180. velocityYFall=0
  1181. velocityYFall2=0
  1182. velocityYFall3=0
  1183. velocityYFall4=0
  1184. neckrotY=0
  1185. neckrotY2=0
  1186. torsorotY=0
  1187. torsorotY2=0
  1188. torsoY=0
  1189. torsoY2=0
  1190. colored = 0
  1191. sine = 0
  1192. change=0.4
  1193. movement=5
  1194. timeranim=0
  1195. running = false
  1196. glitched = false
  1197. backup = hed.Weld.C1
  1198. glitchedC1 = hed.Weld.C1
  1199.  
  1200. mouse.KeyDown:connect(function(key)
  1201. key = string.lower(key)
  1202. if string.byte(key) == 48 then
  1203. running = true
  1204. local keyup = mouse.KeyUp:connect(function(key)
  1205. if string.byte(key) == 48 then
  1206. running = false
  1207. end
  1208. end)
  1209. repeat rs:wait() until running == false
  1210. keyup:disconnect()
  1211. end
  1212. end)
  1213.  
  1214. icolor=1
  1215. imode=false
  1216.  
  1217. didjump = false
  1218. jumppower = 0
  1219. freeze = false
  1220. debounceimpact = false
  1221.  
  1222. function jumpimpact()
  1223. if debounceimpact == false then
  1224. debounceimpact = true
  1225. if jumppower < -150 then jumppower = -150 end
  1226. shake(-jumppower/5)
  1227. for i=1,-jumppower/20 do rs:wait()
  1228. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0,0,0), 0.05)
  1229. 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)
  1230. end
  1231. debounceimpact = false
  1232. end
  1233. end
  1234.  
  1235. local sond = nil
  1236. rs:connect(function()
  1237.  
  1238. if not torso:FindFirstChild("STATICSOUND") then
  1239. sond=Instance.new("Sound",torso)
  1240. sond.Name = "STATICSOUND"
  1241. sond.SoundId = "rbxassetid://223103466"
  1242. sond.Looped = true
  1243. sond:Play()
  1244. end
  1245.  
  1246. if icolor > 1 then
  1247. imode = false
  1248. elseif icolor < 0 then
  1249. imode = true
  1250. end
  1251.  
  1252. if imode == true then
  1253. icolor = icolor + 0.01
  1254. else
  1255. icolor = icolor - 0.01
  1256. end
  1257.  
  1258. for i,v in pairs(emitters) do
  1259. v.Acceleration = root.CFrame.upVector*(666/100)
  1260. end
  1261.  
  1262. if p.Character.Parent == nil then
  1263. local model = Instance.new("Model")
  1264. model.Name = p.Name
  1265. p.Character = model
  1266. for i,v in pairs(char:GetChildren()) do
  1267. v.Parent = p.Character
  1268. end
  1269. end
  1270.  
  1271. char = p.Character
  1272. if p.Character.Parent ~= workspace then
  1273. p.Character.Parent = workspace
  1274. end
  1275. for i,v in pairs(char:GetChildren()) do
  1276. if v:IsA("Accoutrement") then
  1277. if v.Handle:FindFirstChild("Mesh") then
  1278. v.Handle:FindFirstChild("Mesh").Offset = Vector3.new()
  1279. v.Handle.Transparency = 0
  1280. end
  1281. elseif v:IsA("BasePart") then
  1282. v.Anchored = false
  1283. if v:FindFirstChildOfClass("BodyPosition") then
  1284. v:FindFirstChildOfClass("BodyPosition"):Destroy()
  1285. end
  1286. if v:FindFirstChildOfClass("BodyVelocity") then
  1287. v:FindFirstChildOfClass("BodyVelocity"):Destroy()
  1288. end
  1289. if v:FindFirstChildOfClass("BodyGyro") and v:FindFirstChildOfClass("BodyGyro").Name ~= "lolnochara" then
  1290. v:FindFirstChildOfClass("BodyGyro"):Destroy()
  1291. end
  1292. if v:FindFirstChild("Mesh") then
  1293. v:FindFirstChild("Mesh").Offset = Vector3.new()
  1294. end
  1295. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD") then
  1296. local force = Instance.new("Part",DebrisModel)
  1297. force.Name = v.Name.."FORCEFIELD"
  1298. force.Size = v.Size+(Vector3.new(1,1,1)*0.2)
  1299. force.CanCollide = false
  1300. force.Transparency = 1
  1301. newWeld(v,force,0,0,0)
  1302. else
  1303. if not DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"):FindFirstChildOfClass("Weld") then
  1304. newWeld(v,DebrisModel:FindFirstChild(v.Name.."FORCEFIELD"),0,0,0)
  1305. end
  1306. end
  1307. if v.Name ~= "HumanoidRootPart" then
  1308. v.Transparency = 0
  1309. else
  1310. v.Transparency = 1
  1311. end
  1312. end
  1313. end
  1314.  
  1315. if mode == "determination" then
  1316. trail.Enabled = true
  1317. else
  1318. trail.Enabled = false
  1319. end
  1320.  
  1321. if freeze == false then
  1322. if running == false then
  1323. hum.WalkSpeed = 12*size
  1324. change=0.4
  1325. movement=5
  1326. else
  1327. hum.WalkSpeed = (666/10)*size
  1328. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5*size then
  1329. change=1
  1330. else
  1331. change=0.4
  1332. end
  1333. movement=15
  1334. end
  1335. else
  1336. hum.WalkSpeed = 1
  1337. change=0.4
  1338. movement=5
  1339. end
  1340.  
  1341. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 150 then
  1342. velocityYFall = root.Velocity.Y/1.5
  1343. else
  1344. if -root.Velocity.Y/1.5 < -5 then
  1345. velocityYFall = 5
  1346. elseif -root.Velocity.Y/1.5 > 150 then
  1347. velocityYFall = -150
  1348. end
  1349. end
  1350.  
  1351. if -root.Velocity.Y/180 > 0 and -root.Velocity.Y/180 < 1.2 then
  1352. velocityYFall2 = root.Velocity.Y/180
  1353. else
  1354. if -root.Velocity.Y/180 < 0 then
  1355. velocityYFall2 = 0
  1356. elseif -root.Velocity.Y/180 > 1.2 then
  1357. velocityYFall2 = -1.2
  1358. end
  1359. end
  1360.  
  1361. if -root.Velocity.Y/1.5 > -5 and -root.Velocity.Y/1.5 < 50 then
  1362. velocityYFall3 = root.Velocity.Y/1.5
  1363. else
  1364. if -root.Velocity.Y/1.5 < -5 then
  1365. velocityYFall3 = 5
  1366. elseif -root.Velocity.Y/1.5 > 50 then
  1367. velocityYFall3 = -50
  1368. end
  1369. end
  1370.  
  1371. if -root.Velocity.Y/1.5 > -50 and -root.Velocity.Y/1.5 < 20 then
  1372. velocityYFall4 = root.Velocity.Y/1.5
  1373. else
  1374. if -root.Velocity.Y/180 < -5 then
  1375. velocityYFall4 = 5
  1376. elseif -root.Velocity.Y/180 > 50 then
  1377. velocityYFall4 = -50
  1378. end
  1379. end
  1380.  
  1381. if root.RotVelocity.Y/6 < 1 and root.RotVelocity.Y/6 > -1 then
  1382. neckrotY = root.RotVelocity.Y/6
  1383. else
  1384. if root.RotVelocity.Y/6 < -1 then
  1385. neckrotY = -1
  1386. elseif root.RotVelocity.Y/6 > 1 then
  1387. neckrotY = 1
  1388. end
  1389. end
  1390.  
  1391. if root.RotVelocity.Y/8 < 0.6 and root.RotVelocity.Y/8 > -0.6 then
  1392. neckrotY2 = root.RotVelocity.Y/8
  1393. else
  1394. if root.RotVelocity.Y/8 < -0.6 then
  1395. neckrotY2 = -0.6
  1396. elseif root.RotVelocity.Y/8 > 0.6 then
  1397. neckrotY2 = 0.6
  1398. end
  1399. end
  1400.  
  1401. if root.RotVelocity.Y/6 < 0.2 and root.RotVelocity.Y/6 > -0.2 then
  1402. torsorotY = root.RotVelocity.Y/6
  1403. else
  1404. if root.RotVelocity.Y/6 < -0.2 then
  1405. torsorotY = -0.2
  1406. elseif root.RotVelocity.Y/6 > 0.2 then
  1407. torsorotY = 0.2
  1408. end
  1409. end
  1410.  
  1411. if root.RotVelocity.Y/8 < 0.2 and root.RotVelocity.Y/8 > -0.2 then
  1412. torsorotY2 = root.RotVelocity.Y/8
  1413. else
  1414. if root.RotVelocity.Y/8 < -0.2 then
  1415. torsorotY2 = -0.2
  1416. elseif root.RotVelocity.Y/8 > 0.2 then
  1417. torsorotY2 = 0.2
  1418. end
  1419. end
  1420.  
  1421. torsoY = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/20
  1422. torsoY2 = -(torso.Velocity*Vector3.new(1, 0, 1)).magnitude/36
  1423.  
  1424. local ray1 = Ray.new(root.Position+Vector3.new(size,0,0),Vector3.new(0, -4*size, 0))
  1425. local part1, endPoint = workspace:FindPartOnRay(ray1, char)
  1426. local ray2 = Ray.new(root.Position-Vector3.new(size,0,0),Vector3.new(0, -4*size, 0))
  1427. local part2, endPoint = workspace:FindPartOnRay(ray2, char)
  1428. local ray3 = Ray.new(root.Position+Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0))
  1429. local part3, endPoint = workspace:FindPartOnRay(ray3, char)
  1430. local ray4 = Ray.new(root.Position-Vector3.new(0,0,size/2),Vector3.new(0, -4*size, 0))
  1431. local part4, endPoint = workspace:FindPartOnRay(ray4, char)
  1432. local ray = Ray.new(root.Position,Vector3.new(0, -6, 0))
  1433. local part, endPoint = workspace:FindPartOnRay(ray, char)
  1434.  
  1435. if part1 or part2 or part3 or part4 then jumped = false else endPoint = 0 jumped = true end
  1436.  
  1437. local rlegray = Ray.new(rleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0))
  1438. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
  1439.  
  1440. local llegray = Ray.new(lleg.Position+Vector3.new(0,size/2,0),Vector3.new(0, -1.75*size, 0))
  1441. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
  1442.  
  1443. if hum.Health > 0 and noidle == false then
  1444. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude >= 5 and jumped == false then
  1445. 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)
  1446. 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)
  1447. 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)
  1448. 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)
  1449. 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)
  1450. 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)
  1451. 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)
  1452. elseif jumped == true then
  1453. didjump = true
  1454. jumppower = root.Velocity.Y
  1455. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.1) * CFrame.Angles(0,0,0), 0.4)
  1456. hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3/5),0,0), 0.1)
  1457. 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)
  1458. 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)
  1459. 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)
  1460. 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)
  1461. 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)
  1462. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 5*size then
  1463. 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)
  1464. 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)
  1465. 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)
  1466. 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)
  1467. 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)
  1468. 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)
  1469. 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)
  1470. end
  1471. end
  1472. if didjump == true and jumped == false and jumppower < 0 then
  1473. didjump = false
  1474. jumpimpact()
  1475. end
  1476.  
  1477. local chance = math.random(0,10000)/100
  1478. if chance <= 5 + (kills/2) then
  1479. if glitched == false then
  1480. backup = hed.Weld.C1
  1481. end
  1482. if torso:FindFirstChild("MusicRuin") then
  1483. equalizer.HighGain = 0
  1484. equalizer.MidGain = -20
  1485. equalizer.LowGain = -80
  1486. end
  1487. hed.Weld.C1 = glitchedC1
  1488. local glitch_color = Color3.fromHSV(math.random(0,1000)/1000,1,1)
  1489. hed.Color = glitch_color
  1490. torso.Color = glitch_color
  1491. rarm.Color = glitch_color
  1492. larm.Color = glitch_color
  1493. rleg.Color = glitch_color
  1494. lleg.Color = glitch_color
  1495. shake(5)
  1496. glitched = true
  1497. hed.face.Texture = "rbxassetid://"
  1498. sond:Resume()
  1499. else
  1500. if glitched == true then
  1501. glitched = false
  1502. hed.Weld.C1 = backup
  1503. glitchedC1 = backup*CFrame.Angles(math.rad(math.random(-40,40)),math.rad(math.random(-40,40)),math.rad(math.random(-20,20)))
  1504. end
  1505. if torso:FindFirstChild("MusicRuin") then
  1506. equalizer.HighGain = 0
  1507. equalizer.MidGain = 0
  1508. equalizer.LowGain = 0
  1509. end
  1510. hed.BrickColor = skin_color
  1511. torso.BrickColor = skin_color
  1512. rarm.BrickColor = skin_color
  1513. larm.BrickColor = skin_color
  1514. rleg.BrickColor = skin_color
  1515. lleg.BrickColor = skin_color
  1516. hed.face.Texture = "rbxassetid://422627909"
  1517. sond:Pause()
  1518. end
  1519.  
  1520. timeposition = soundz.TimePosition
  1521. sine = sine + change
  1522. hum.Health = math.huge
  1523. hum.MaxHealth = math.huge
  1524. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement