EARTHWORM_SALLY

CHARA

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