Advertisement
EARTHWORM_SALLY

kid

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