Advertisement
TheownerFescripts

E

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