doryna2281337

Untitled

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