Advertisement
EARTHWORM_SALLY

kthxbai

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