daily pastebin goal
17%
SHARE
TWEET

Untitled

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