daily pastebin goal
33%
SHARE
TWEET

mega chara

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