Hmm465_Gaming

chara3

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