aqzsxw2013

LOVE CHRAR

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