Advertisement
sawgamer1

Untitled

Nov 26th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.68 KB | None | 0 0
  1.  
  2. local Player, Character = game:service("Players").ImaBoss838, game:GetService("Players").ImaBoss838.Character;
  3. local Torso = Character:FindFirstChild("Torso")
  4. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  5. local Humanoid = Character:FindFirstChild("Humanoid")
  6. local Head = Character:FindFirstChild("Head")
  7. local Right_Arm = Character:FindFirstChild("Right Arm")
  8. local Left_Arm = Character:FindFirstChild("Left Arm")
  9. local Right_Leg = Character:FindFirstChild("Right Leg")
  10. local Left_Leg = Character:FindFirstChild("Left Leg")
  11. local Right_Shoulder = Torso:FindFirstChild("Right Shoulder")
  12. local Left_Shoulder = Torso:FindFirstChild("Left Shoulder")
  13. local Right_Hip = Torso:FindFirstChild("Right Hip")
  14. local Left_Hip = Torso:FindFirstChild("Left Hip")
  15. local Neck = Torso:FindFirstChild("Neck")
  16. local rootPart = Character:FindFirstChild("HumanoidRootPart")
  17. local rootJoint = rootPart:FindFirstChild("RootJoint")
  18. local CurrentIdle = "Idling1"
  19. local Degree = 0.0175438596491228
  20. local canremove = false
  21. local debounce = false
  22. local UIService=game:GetService'UserInputService'
  23. _G.SongName = math.random(1,9025232)
  24.  
  25. local Hood = Instance.new("Part",Head)
  26. Hood.Name = "Hood"
  27. Hood.Shape = Enum.PartType.Ball
  28. Hood.CanCollide = false
  29. Hood.BrickColor = BrickColor.new("Medium stone grey")
  30. Hood.Transparency = 0
  31. Hood.Material = "Grass"
  32. Hood.Size = Vector3.new(0.1, 0.1, 0.1)
  33. Hood.TopSurface = Enum.SurfaceType.Smooth
  34. Hood.BottomSurface = Enum.SurfaceType.Smooth
  35. local Weld = Instance.new("Weld", Hood)
  36. Weld.Part0 = Head
  37. Weld.Part1 = Hood
  38. Weld.C1 = CFrame.new(0,0,0.6)
  39. HoodMesh = Instance.new("FileMesh",Hood)
  40. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520910"
  41. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=1772096775"
  42. HoodMesh.Scale = Vector3.new(1,1,1)
  43.  
  44. local Hair = Instance.new("Part",Head)
  45. Hair.Name = "Hair"
  46. Hair.Shape = Enum.PartType.Ball
  47. Hair.CanCollide = false
  48. Hair.BrickColor = BrickColor.new("Really black")
  49. Hair.Transparency = 0
  50. Hair.Material = "Grass"
  51. Hair.Size = Vector3.new(0.1, 0.1, 0.1)
  52. Hair.TopSurface = Enum.SurfaceType.Smooth
  53. Hair.BottomSurface = Enum.SurfaceType.Smooth
  54. local Weld = Instance.new("Weld", Hair)
  55. Weld.Part0 = Head
  56. Weld.Part1 = Hair
  57. Weld.C1 = CFrame.new(0,-0.5,0)
  58. HairMesh = Instance.new("FileMesh",Hair)
  59. HairMesh.MeshId = "http://www.roblox.com/asset/?id=15730710"
  60. HairMesh.TextureId = "http://www.roblox.com/asset/?id=13332337"
  61. HairMesh.Scale = Vector3.new(1.1,1.1,1.1)
  62.  
  63. lit = Instance.new("PointLight",Torso)
  64. lit.Brightness = 0
  65. lit.Range = 3
  66. lit.Color = Color3.fromRGB(180, 128, 255)
  67.  
  68. sin = math.sin
  69. Right_Leg.FormFactor = "Custom";
  70. Left_Leg.FormFactor = "Custom";
  71. rootPart.Archivable = true;
  72. rootJoint.Archivable = true;
  73. c_new = CFrame.new;
  74. c_angles = CFrame.Angles;
  75. i_new = Instance.new
  76. Humanoid:ClearAllChildren();
  77. local isAttacking = false
  78. local isSprinting = false
  79. local Animations = false
  80. local Angle = 0
  81. local Axis = 0
  82. local angleSpeed = 1
  83. local axisSpeed = angleSpeed
  84. local currentAnim
  85. local levetatingheight = 3
  86. local WalkType = "Ground"
  87.  
  88. function Sound(parent,loop,vol,id)
  89. local s = Instance.new('Sound',parent)
  90. s.Looped = loop
  91. s.Volume = vol
  92. s.MaxDistance=200
  93. s.EmitterSize=20
  94. s.SoundId = 'rbxassetid://'..tostring(id)
  95. s:Play()
  96. if loop == false then
  97. wait(s.TimeLength)
  98. s:Destroy()
  99. end
  100. end
  101.  
  102. Sound(rootPart,true,1,708003712)
  103.  
  104. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  105. wld = Instance.new("Weld", wp1)
  106. wld.Part0 = wp0
  107. wld.Part1 = wp1
  108. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  109. return wld
  110. end
  111.  
  112. function noOutline(part)
  113. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  114. end
  115.  
  116. local function Part(Name,Color, Material, Transparency,Shape, Size, CFrame,CanCollide,Anchored,parent)
  117. local partie = i_new("Part",parent)
  118. partie.Name=Name
  119. partie.BrickColor = BrickColor.new(Color)
  120. partie.Material = Material
  121. partie.Shape = Shape
  122. partie.Transparency = Transparency
  123. partie.Size = Size
  124. partie.CFrame = CFrame
  125. partie.CanCollide = CanCollide
  126. partie.Anchored = Anchored
  127. return partie
  128. end
  129.  
  130. --ArtificialHB--
  131. local ArtificialHB = Instance.new("BindableEvent", script)
  132. ArtificialHB.Name = "Heartbeat"
  133.  
  134. script:WaitForChild("Heartbeat")
  135.  
  136. local frame = 1/60
  137. local tf = 0
  138. local allowframeloss = false
  139. local tossremainder = false
  140. local lastframe = tick()
  141. ArtificialHB:Fire()
  142.  
  143. game:GetService("RunService").Heartbeat:connect(function(s, p)
  144. tf = tf + s
  145. if tf >= frame then
  146. if allowframeloss then
  147. script.Heartbeat:Fire()
  148. lastframe = tick()
  149. else
  150. for i = 1, math.floor(tf / frame) do
  151. ArtificialHB:Fire()
  152. end
  153. lastframe = tick()
  154. end
  155. if tossremainder then
  156. tf = 0
  157. else
  158. tf = tf - frame * math.floor(tf / frame)
  159. end
  160. end
  161. end)
  162.  
  163. function swait(num)
  164. if num == 0 or num == nil then
  165. ArtificialHB.Event:wait()
  166. else
  167. for i = 0, num do
  168. ArtificialHB.Event:wait()
  169. end
  170. end
  171. end
  172.  
  173. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  174. local mesh = i_new(Mesh)
  175. mesh.Parent = part
  176. if Mesh == "SpecialMesh" then
  177. mesh.MeshType = meshtype
  178. mesh.MeshId = meshid
  179. end
  180. mesh.Offset = offset
  181. mesh.Scale = scale
  182. return mesh
  183. end
  184.  
  185. transform = false
  186. debounce = false
  187. coughing = false
  188.  
  189. Debris = game:GetService("Debris")
  190.  
  191. local Particle = Instance.new("ParticleEmitter",nil)
  192. Particle.Enabled = false
  193. Particle.LightEmission = 0.2
  194. Particle.Rate = 150
  195. Particle.ZOffset = 1
  196. Particle.Rotation = NumberRange.new(-180, 180)
  197.  
  198. local RINGFIRE = {}
  199.  
  200. function ParticleEmitter(Table)
  201. local PRTCL = Particle:Clone()
  202. local Color1 = Table.Color1 or Color3.new(1,1,1)
  203. local Color2 = Table.Color2 or Color3.new(1,1,1)
  204. local Speed = Table.Speed or 5
  205. local Drag = Table.Drag or 0
  206. local Size1 = Table.Size1 or 1
  207. local Size2 = Table.Size2 or 5
  208. local Lifetime1 = Table.Lifetime1 or 1
  209. local Lifetime2 = Table.Lifetime2 or 1.5
  210. local Parent = Table.Parent or Torso
  211. local Emit = Table.Emit or 100
  212. local Offset = Table.Offset or 360
  213. local Acel = Table.Acel or Vector3.new(0,0,0)
  214. local Enabled = Table.Enabled or false
  215. local Texture = Table.Texture or "281983280"
  216. local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  217. local Trans1 = Table.Transparency1 or 0
  218. local Trans2 = Table.Transparency2 or 0
  219. PRTCL.Parent = Parent
  220. PRTCL.RotSpeed = RotS
  221. PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  222. PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  223. PRTCL.Color = ColorSequence.new(Color1,Color2)
  224. PRTCL.Size = NumberSequence.new(Size1,Size2)
  225. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  226. PRTCL.Speed = NumberRange.new(Speed)
  227. PRTCL.VelocitySpread = Offset
  228. PRTCL.Drag = Drag
  229. PRTCL.Acceleration = Acel
  230. if Enabled == false then
  231. PRTCL:Emit(Emit)
  232. Debris:AddItem(PRTCL,Lifetime2)
  233. else
  234. PRTCL.Enabled = true
  235. end
  236. return PRTCL
  237. end
  238.  
  239. local EYE1 = Instance.new("Attachment",Head)
  240. EYE1.Position = (Vector3.new(0.4, 0.5, -1.195)/2)
  241. local EYE2 = Instance.new("Attachment",Head)
  242. EYE2.Position = (Vector3.new(-0.4, 0.5, -1.195)/2)
  243. local PRTCL = ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 0.2, Acel = Vector3.new(2,0.5,0.6), RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 0.15, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1.4, Parent = EYE1, Emit = 100, Offset = 360, Enabled = true, Color1 = Color3.fromRGB(180, 128, 255), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  244. PRTCL.LockedToPart = true
  245. PRTCL.Rate = 185
  246. PRTCL.ZOffset = 0.1
  247. PRTCL.LightEmission = 1
  248. PRTCL.Enabled = false
  249. table.insert(RINGFIRE,PRTCL)
  250. local PRTCL2 = ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 0.2, Acel = Vector3.new(-2,0.5,0.6), RotSpeed = NumberRange.new(-15, 15), Drag = 0, Size1 = 0.15, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1.4, Parent = EYE2, Emit = 100, Offset = 360, Enabled = true, Color1 = Color3.fromRGB(180, 128, 255), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  251. PRTCL2.LockedToPart = true
  252. PRTCL2.Rate = 185
  253. PRTCL2.ZOffset = 0.1
  254. PRTCL2.LightEmission = 1
  255. PRTCL2.Enabled = false
  256. table.insert(RINGFIRE,PRTCL2)
  257.  
  258. talking = false
  259.  
  260. q1=Instance.new('ParticleEmitter',Head)
  261. q1.Name = "q1"
  262. q1.Rate = 500
  263. q1.Speed = NumberRange.new(7)
  264. q1.VelocitySpread = 0
  265. q1.EmissionDirection = "Front"
  266. q1.Lifetime = NumberRange.new(0.1,1)
  267. q1.Texture = 'rbxassetid://164417280'
  268. q1.Acceleration = Vector3.new(0,-50,0)
  269. q1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  270. q1.RotSpeed = NumberRange.new(-180, 180)
  271. q1.Rotation = NumberRange.new(-360, 360)
  272. q1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  273. q1.Enabled = false
  274. if key == "e" and transform == false and debounce == false and talking == false then
  275. debounce = true
  276. talking = true
  277. SOU = Instance.new("Sound")
  278. SOU.Parent = Character.Torso
  279. SOU.SoundId = "rbxassetid://1384757081"
  280. SOU.Volume = 15
  281. SOU.Looped = false
  282. SOU.Pitch = 1
  283. SOU.TimePosition = 4.5
  284. SOU:Play()
  285. wait(1.5)
  286. talking = false
  287. HairMesh.TextureId = "http://www.roblox.com/asset/?id=101678162"
  288. Character['Body Colors'].HeadColor=BrickColor.new('Really black')
  289. Character['Body Colors'].TorsoColor=BrickColor.new('Really black')
  290. Character['Body Colors'].RightArmColor=BrickColor.new('Really black')
  291. Character['Body Colors'].LeftArmColor=BrickColor.new('Really black')
  292. Character['Body Colors'].RightLegColor=BrickColor.new('Really black')
  293. Character['Body Colors'].LeftLegColor=BrickColor.new('Really black')
  294. shirt.ShirtTemplate = "rbxassetid://767866442"
  295. pants.PantsTemplate = "rbxassetid://842364401"
  296. coroutine.wrap(function()
  297. wait(7)
  298. for i = 1,100 do
  299. Hair.Transparency = Hair.Transparency + 0.01
  300. wait()
  301. end
  302. end)()
  303. DP = Instance.new("Sound")
  304. DP.Parent = Character.Torso
  305. DP.SoundId = "rbxassetid://244502094"
  306. DP.Volume = 10
  307. DP.Looped = true
  308. DP.Pitch = 1
  309. DP:Play()
  310. q=Instance.new('ParticleEmitter',Head)
  311. q.Rate = 500
  312. q.Speed = NumberRange.new(7)
  313. q.VelocitySpread = 0
  314. q.EmissionDirection = "Front"
  315. q.Lifetime = NumberRange.new(0.1,1)
  316. q.Texture = 'rbxassetid://164417280'
  317. q.Acceleration = Vector3.new(0,-50,0)
  318. q.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  319. q.RotSpeed = NumberRange.new(-180, 180)
  320. q.Rotation = NumberRange.new(-360, 360)
  321. q.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  322. coughing = true
  323. wait(10) --28 is the original but it's too long
  324. DP:Stop()
  325. q.Enabled = false
  326. coughing = false
  327. SOU:Stop()
  328. wait(1)
  329. talking = true
  330. PRTCL2.Enabled = true
  331. PRTCL.Enabled = true
  332. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
  333. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=558227098"
  334. Head.face.Texture = "rbxassetid://256293532"
  335. Head.face.Color3 = Color3.new(0,0,0)
  336. S = Instance.new("Sound")
  337. S.Parent = Character.Torso
  338. S.SoundId = "rbxassetid://858697889"
  339. S.Volume = 10
  340. S.Looped = false
  341. S.Pitch = 1
  342. S:Play()
  343. wait(2)
  344. talking = false
  345. PRTCL2.Enabled = false
  346. PRTCL.Enabled = false
  347. q:Destroy()
  348. transform = true
  349. end
  350.  
  351.  
  352. if key == "v" and transform == true and PRTCL.Enabled == false and talking == false then
  353. talking = true
  354. lit.Brightness = 1
  355. PRTCL2.Enabled = true
  356. PRTCL.Enabled = true
  357. S = Instance.new("Sound")
  358. S.Parent = Character.Torso
  359. S.SoundId = "rbxassetid://398631872"
  360. S.Volume = 10
  361. S.Looped = false
  362. S.Pitch = 1
  363. S.TimePosition = 2
  364. S:Play()
  365. wait(14)
  366. PRTCL2.Enabled = false
  367. PRTCL.Enabled = false
  368. lit.Brightness = 0
  369. talking = false
  370. end
  371.  
  372. laughing = false
  373.  
  374.  
  375. if key == "r" and transform == true and PRTCL.Enabled == false and talking == false then
  376. talking = true
  377. lit.Brightness = 1
  378. PRTCL2.Enabled = true
  379. PRTCL.Enabled = true
  380. S = Instance.new("Sound")
  381. S.Parent = Character.Torso
  382. S.SoundId = "rbxassetid://177359995"
  383. S.Volume = 10
  384. S.Looped = false
  385. S.Pitch = 1
  386. S:Play()
  387. wait(3.35)
  388. PRTCL2.Enabled = false
  389. PRTCL.Enabled = false
  390. lit.Brightness = 0
  391. talking = false
  392. end
  393.  
  394.  
  395. if key == "t" and transform == true and PRTCL.Enabled == false and talking == false then
  396. talking = true
  397. PRTCL2.Enabled = true
  398. PRTCL.Enabled = true
  399. lit.Brightness = 1
  400. S = Instance.new("Sound")
  401. S.Parent = Character.Torso
  402. S.SoundId = "rbxassetid://858697889"
  403. S.Volume = 10
  404. S.Looped = false
  405. S.Pitch = 1
  406. S:Play()
  407. wait(3.8)
  408. PRTCL2.Enabled = false
  409. PRTCL.Enabled = false
  410. lit.Brightness = 0
  411. talking = false
  412. end
  413.  
  414.  
  415. if key == "y" and transform == true then
  416. S = Instance.new("Sound")
  417. S.Parent = Character.Torso
  418. S.SoundId = "rbxassetid://708003498"
  419. S.Volume = 10
  420. S.Looped = false
  421. S.Pitch = 1
  422. S:Play()
  423. end
  424.  
  425.  
  426. if key == "r" and transform == false and talking == false then
  427. talking = true
  428. S = Instance.new("Sound")
  429. S.Parent = Character.Torso
  430. S.SoundId = "rbxassetid://155074440"
  431. S.Volume = 10
  432. S.Looped = false
  433. S.Pitch = 1
  434. S.TimePosition = 0.4
  435. S:Play()
  436. wait(6)
  437. talking = false
  438. end
  439.  
  440.  
  441. if key == "t" and transform == false and talking == false then
  442. talking = true
  443. S = Instance.new("Sound")
  444. S.Parent = Character.Torso
  445. S.SoundId = "rbxassetid://494478995"
  446. S.Volume = 10
  447. S.Looped = false
  448. S.Pitch = 1
  449. S:Play()
  450. wait(5.04)
  451. talking = false
  452. end
  453.  
  454. q1=Instance.new('ParticleEmitter',Head)
  455. q1.Rate = 500
  456. q1.Speed = NumberRange.new(7)
  457. q1.VelocitySpread = 0
  458. q1.EmissionDirection = "Front"
  459. q1.Lifetime = NumberRange.new(0.1,1)
  460. q1.Texture = 'rbxassetid://164417280'
  461. q1.Acceleration = Vector3.new(0,-50,0)
  462. q1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  463. q1.RotSpeed = NumberRange.new(-180, 180)
  464. q1.Rotation = NumberRange.new(-360, 360)
  465. q1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  466. q1.Enabled = false
  467.  
  468.  
  469. if key == "f" and transform == true then
  470. S = Instance.new("Sound")
  471. S.Parent = Character.Torso
  472. S.SoundId = "rbxassetid://176850421"
  473. S.Volume = 10
  474. S.Looped = false
  475. S.Pitch = 1
  476. S:Play()
  477. end
  478.  
  479. toggle = false
  480.  
  481.  
  482. if key == "f" and transform == false and talking == false then
  483. talking = true
  484. S = Instance.new("Sound")
  485. S.Parent = Character.Torso
  486. S.SoundId = "rbxassetid://1765588386"
  487. S.Volume = 10
  488. S.Looped = false
  489. S.Pitch = 1
  490. S:Play()
  491. wait(18.5)
  492. talking = false
  493. end
  494.  
  495.  
  496. if key == "j" and transform == false and talking == false then
  497. talking = true
  498. S = Instance.new("Sound")
  499. S.Parent = Character.Torso
  500. S.SoundId = "rbxassetid://936161138"
  501. S.Volume = 10
  502. S.Looped = false
  503. S.Pitch = 1
  504. S:Play()
  505. wait(24.73)
  506. talking = false
  507. end
  508.  
  509.  
  510. if key == "k" and transform == false and talking == false then
  511. talking = true
  512. S = Instance.new("Sound")
  513. S.Parent = Character.Torso
  514. S.SoundId = "rbxassetid://936159847"
  515. S.Volume = 10
  516. S.Looped = false
  517. S.Pitch = 1
  518. S:Play()
  519. wait(27.22)
  520. talking = false
  521. end
  522.  
  523.  
  524. if key == "l" and transform == false and talking == false then
  525. talking = true
  526. S = Instance.new("Sound")
  527. S.Parent = Character.Torso
  528. S.SoundId = "rbxassetid://936162120"
  529. S.Volume = 10
  530. S.Looped = false
  531. S.Pitch = 1
  532. S:Play()
  533. wait(25.3)
  534. talking = false
  535. end
  536.  
  537.  
  538. if transform == true then
  539.  
  540.  
  541. if key == "x" then
  542. if coughing == false then
  543. coughing = true
  544. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520910"
  545. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=1772096775"
  546. q1=Instance.new('ParticleEmitter',Head)
  547. q1.Name = "q1"
  548. q1.Rate = 500
  549. q1.Speed = NumberRange.new(7)
  550. q1.VelocitySpread = 0
  551. q1.EmissionDirection = "Front"
  552. q1.Lifetime = NumberRange.new(0.1,1)
  553. q1.Texture = 'rbxassetid://164417280'
  554. q1.Acceleration = Vector3.new(0,-50,0)
  555. q1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  556. q1.RotSpeed = NumberRange.new(-180, 180)
  557. q1.Rotation = NumberRange.new(-360, 360)
  558. q1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  559. ZZ = Instance.new("Sound")
  560. ZZ.Parent = Character.Torso
  561. ZZ.SoundId = "rbxassetid://244502094"
  562. ZZ.Volume = 10
  563. ZZ.Looped = true
  564. ZZ.Pitch = 1
  565. ZZ:Play()
  566. ZZ2 = Instance.new("Sound")
  567. ZZ2.Parent = Character.Torso
  568. ZZ2.SoundId = "rbxassetid://300046017"
  569. ZZ2.Volume = 2
  570. ZZ2.Looped = true
  571. ZZ2.Pitch = 1
  572. ZZ2:Play()
  573. elseif coughing == true then
  574. coughing = false
  575. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
  576. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=558227098"
  577. ZZ:Destroy()
  578. ZZ2:Destroy()
  579. PRTCL2.Enabled = false
  580. PRTCL.Enabled = false
  581. game:GetService("Players").ImaBoss838.Character.Head.q1:Destroy()
  582. q1.Enabled = false
  583. q1:Destroy()
  584. end
  585. end
  586.  
  587.  
  588. end
  589.  
  590.  
  591.  
  592. if key == "m" and talking == false then
  593. talking = true
  594. S = Instance.new("Sound")
  595. S.Parent = Character.Torso
  596. S.SoundId = "rbxassetid://1766163151"
  597. S.Volume = 10
  598. S.Looped = false
  599. S.Pitch = 1
  600. S:Play()
  601. wait(2.38)
  602. talking = false
  603. end
  604.  
  605.  
  606. if key == "n" and talking == false then
  607. talking = true
  608. S = Instance.new("Sound")
  609. S.Parent = Character.Torso
  610. S.SoundId = "rbxassetid://1766162663"
  611. S.Volume = 10
  612. S.Looped = false
  613. S.Pitch = 1
  614. S:Play()
  615. wait(4.13)
  616. talking = false
  617. end
  618.  
  619. if key == "two" then
  620. game:GetService("Players").ImaBoss838.Character.Head.q1:Destroy()
  621. end end)
  622.  
  623. function findCloseHumanoid(centre, distance)
  624. local tab = {}
  625. for _, child in pairs(game.Workspace:GetChildren()) do
  626. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
  627. local vtors = child.Torso
  628. local mag = math.abs((vtors.Position - centre).magnitude)
  629. if distance >= mag then
  630. table.insert(tab, child.Humanoid)
  631. end
  632. end
  633. end
  634. return tab
  635. end
  636.  
  637.  
  638. function onTouch(part)
  639.  
  640. local humanoid = part.Parent:findFirstChild("Humanoid")
  641. local model = part.Parent
  642. local torso = part.Parent:findFirstChild("Torso")
  643. local head = part.Parent:findFirstChild("Head")
  644. local leftleg = part.Parent:findFirstChild("Left Leg")
  645. local rightleg = part.Parent:findFirstChild("Right Leg")
  646. local leftarm = part.Parent:findFirstChild("Left Arm")
  647. local rightarm = part.Parent:findFirstChild("Right Arm")
  648. if humanoid.Health <= 0 then
  649. return
  650. end
  651. if transform == false then
  652. return
  653. end
  654.  
  655. for i, v in pairs(findCloseHumanoid(Torso.Position, 10)) do
  656. humanoid.Health = 0
  657. head.BrickColor = BrickColor.new("Really black")
  658. torso.BrickColor = BrickColor.new("Really black")
  659. leftleg.BrickColor = BrickColor.new("Really black")
  660. rightleg.BrickColor = BrickColor.new("Really black")
  661. rightarm.BrickColor = BrickColor.new("Really black")
  662. leftarm.BrickColor = BrickColor.new("Really black")
  663. torso.Anchored = true
  664.  
  665. e=Instance.new('Part', model)
  666. e.Size = Vector3.new(2.25,2.25,2.25)
  667. e.Transparency = 1
  668. e.Anchored = true
  669. e.CFrame = CFrame.new(head.Position)
  670.  
  671.  
  672. q=Instance.new('ParticleEmitter', e)
  673. q.Rate = 500
  674. q.Speed = NumberRange.new(7)
  675. q.VelocitySpread = 40
  676. q.Lifetime = NumberRange.new(0.1,1)
  677. q.Texture = 'rbxassetid://164417280'
  678. q.Acceleration = Vector3.new(0,-50,0)
  679. q.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  680. q.RotSpeed = NumberRange.new(-180, 180)
  681. q.Rotation = NumberRange.new(-360, 360)
  682. q.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  683.  
  684. torso.Anchored = true
  685. rightleg.Anchored = true
  686. leftleg.Anchored = true
  687. rightarm.Anchored = true
  688. leftarm.Anchored = true
  689. ded = Instance.new("Sound")
  690. ded.Parent = torso
  691. ded.SoundId = "rbxassetid://658228911"
  692. ded.Volume = 3
  693. ded.Looped = false
  694. wait()
  695. ded:Play()
  696. end
  697.  
  698. end
  699.  
  700.  
  701.  
  702. Character.Torso.Touched:connect(onTouch)
  703.  
  704. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants
  705. return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  706. end
  707.  
  708. function QuaternionFromCFrame(cf)
  709. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  710. local trace = m00 + m11 + m22
  711. if trace > 0 then
  712. local s = math.sqrt(1 + trace)
  713. local recip = 0.5/s
  714. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  715. else
  716. local i = 0
  717. if m11 > m00 then
  718. i = 1
  719. end
  720. if m22 > (i == 0 and m00 or m11) then
  721. i = 2
  722. end
  723. if i == 0 then
  724. local s = math.sqrt(m00-m11-m22+1)
  725. local recip = 0.5/s
  726. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  727. elseif i == 1 then
  728. local s = math.sqrt(m11-m22-m00+1)
  729. local recip = 0.5/s
  730. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  731. elseif i == 2 then
  732. local s = math.sqrt(m22-m00-m11+1)
  733. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  734. end
  735. end
  736. end
  737.  
  738. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  739. local xs, ys, zs = x + x, y + y, z + z
  740. local wx, wy, wz = w*xs, w*ys, w*zs
  741. local xx = x*xs
  742. local xy = x*ys
  743. local xz = x*zs
  744. local yy = y*ys
  745. local yz = y*zs
  746. local zz = z*zs
  747. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  748. end
  749.  
  750. function QuaternionSlerp(a, b, t)
  751. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  752. local startInterp, finishInterp;
  753. if cosTheta >= 0.0001 then
  754. if (1 - cosTheta) > 0.0001 then
  755. local theta = math.acos(cosTheta)
  756. local invSinTheta = 1/math.sin(theta)
  757. startInterp = math.sin((1-t)*theta)*invSinTheta
  758. finishInterp = math.sin(t*theta)*invSinTheta
  759. else
  760. startInterp = 1-t
  761. finishInterp = t
  762. end
  763. else
  764. if (1+cosTheta) > 0.0001 then
  765. local theta = math.acos(-cosTheta)
  766. local invSinTheta = 1/math.sin(theta)
  767. startInterp = math.sin((t-1)*theta)*invSinTheta
  768. finishInterp = math.sin(t*theta)*invSinTheta
  769. else
  770. startInterp = t-1
  771. finishInterp = t
  772. end
  773. end
  774. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  775. end
  776.  
  777. function clerp(a, b, t)
  778. local qa = {QuaternionFromCFrame(a)}
  779. local qb = {QuaternionFromCFrame(b)}
  780. local ax, ay, az = a.x, a.y, a.z
  781. local bx, by, bz = b.x, b.y, b.z
  782. local _t = 1-t
  783. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  784. end
  785.  
  786. swait()
  787. LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
  788. Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  789. RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
  790. Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  791. LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
  792. Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  793. RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
  794. Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  795. Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
  796. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  797. Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
  798.  
  799. for i,v in pairs(Character:GetChildren()) do
  800. if v:IsA('Accoutrement') or v:IsA('Shirt') or v:IsA('Pants') then
  801. v:Destroy()
  802. end
  803. end
  804.  
  805. Head.face.Texture = "rbxassetid://141728515"
  806. Head.face.Color3 = Color3.new(0,0,0)
  807.  
  808. shirt = Instance.new("Shirt",Character)
  809. pants = Instance.new("Pants",Character)
  810. wait()
  811. shirt.ShirtTemplate = "rbxassetid://120471954"
  812. pants.PantsTemplate = "rbxassetid://120471978"
  813.  
  814. Character['Body Colors'].HeadColor=BrickColor.new('Linen')
  815. Character['Body Colors'].TorsoColor=BrickColor.new('Linen')
  816. Character['Body Colors'].RightArmColor=BrickColor.new('Linen')
  817. Character['Body Colors'].LeftArmColor=BrickColor.new('Linen')
  818. Character['Body Colors'].RightLegColor=BrickColor.new('Linen')
  819. Character['Body Colors'].LeftLegColor=BrickColor.new('Linen')
  820.  
  821. Humanoid.DisplayDistanceType='None'
  822.  
  823. sine = 0
  824. change = 1
  825. sprint=false
  826. local punches={
  827. a=false,
  828. b=false,
  829. c=false
  830. }
  831.  
  832. UIService.InputBegan:connect(function(Input,GUIProcessed)
  833. if not GUIProcessed and Input.UserInputType==Enum.UserInputType.MouseButton1 then
  834. if punches.a==false then
  835. punches.a=true wait(.4) punches.a=false
  836. else
  837. punches.a=true
  838. print('a ',punches.a)
  839. if punches.b==false then
  840. punches.b=true wait(.4) punches.b=false
  841. else
  842. punches.b=true
  843. print('b ',punches.b)
  844. if punches.c==false then
  845. punches.c=true wait(.4) punches.c=false
  846. else
  847. punches.c=true
  848. print('c ',punches.c)
  849. print('a ',punches.a,'b ',punches.b,'c ',punches.c)
  850. end
  851. end
  852. end
  853. elseif not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift and transform == true then
  854. sprint=true
  855. end
  856. end)
  857.  
  858. UIService.InputEnded:connect(function(Input,GUIProcessed)
  859. if not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then
  860. sprint=false
  861. end
  862. end)
  863.  
  864. Humanoid.Died:connect(function()
  865. q.Enabled = true
  866. S = Instance.new("Sound")
  867. S.Parent = Character.Torso
  868. S.SoundId = "rbxassetid://891043624"
  869. S.Volume = 10
  870. S.Looped = false
  871. S.Pitch = 1
  872. S:Play()
  873. S = Instance.new("Sound")
  874. S.Parent = Character.Torso
  875. S.SoundId = "rbxassetid://429400881"
  876. S.Volume = 5
  877. S.Looped = false
  878. S.Pitch = 1
  879. S:Play()
  880. end)
  881.  
  882. game:GetService("RunService").Heartbeat:connect(function()
  883. Angle = (Angle % 100) + angleSpeed/10
  884. Axis = (Axis % 100) + axisSpeed/10
  885. walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
  886. jumpVel = Torso.Velocity.Y
  887. sine = change + sine
  888.  
  889. if(Humanoid.Jump) and jumpVel > 1 then
  890. currentAnim = "Jumping"
  891. elseif walkingMagnitude < 2 then
  892. currentAnim = "Idling"
  893. elseif isSprinting == true then
  894. currentAnim = "Sprinting"
  895. elseif walkingMagnitude > 2 then
  896. currentAnim = "Walking"
  897. elseif isAttacking == true then
  898. currentAnim = "Attacking"
  899. end
  900.  
  901. if currentAnim == "Jumping" and Animations == false then
  902. angleSpeed = 2
  903. axisSpeed = 2
  904. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  905. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  906. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  907. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  908. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  909. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  910. elseif currentAnim == "Idling" and Animations == false then
  911. if coughing == false and talking == false then
  912. angleSpeed = 1
  913. axisSpeed = 1
  914. change = 0.5
  915. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  916. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  917. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  918. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  919. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  920. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  921. elseif coughing == true then
  922. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1, 0.5, -0.1) * c_angles(math.rad(150), -math.sin((rootPart.RotVelocity.X/10))/-2, math.rad(-55)), 0.15)
  923. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.5, -0.1) * c_angles(math.rad(150), math.sin((rootPart.RotVelocity.X/10))/2, math.rad(55)), 0.15)
  924. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  925. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  926. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  927. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.4, 0.5) * c_angles(math.rad(45), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  928. elseif talking == true and coughing == false then
  929. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  930. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  931. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.rad(0), -math.sin((rootPart.RotVelocity.X/10))/-2, math.sin((-rootPart.RotVelocity.Y/10))/-2), 0.15)
  932. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.X/10))/2, -math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  933. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  934. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  935. end
  936. elseif currentAnim == "Walking" and Animations == false then
  937. if sprint==false then
  938. if coughing == false and talking == false then
  939. angleSpeed = 1
  940. axisSpeed = 1
  941. Humanoid.WalkSpeed = 10
  942. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(sine/4)/8, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5)), 0.15)
  943. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.sin(sine/4)/8, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5)), 0.15)
  944. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.15)
  945. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  946. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  947. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  948. elseif coughing == true then
  949. Humanoid.WalkSpeed = 3
  950. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.2, 0.6, -0.1) * c_angles(math.rad(90), -math.sin((rootPart.RotVelocity.X/10))/-2, math.rad(-60)), 0.15)
  951. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.2, 0.6, -0.1) * c_angles(math.rad(90), math.sin((rootPart.RotVelocity.X/10))/2, math.rad(60)), 0.15)
  952. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.05)
  953. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.05)
  954. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  955. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.4, -0.5) * c_angles(math.rad(-45), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  956. elseif coughing == false and talking == true then
  957. Humanoid.WalkSpeed = 10
  958. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.5, 0) * c_angles(-math.sin(sine/4)/8, -math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(5)), 0.15)
  959. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.sin(sine/4)/8, math.sin((rootPart.RotVelocity.Y/10))/2,math.rad(-5)), 0.15)
  960. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/3, math.sin((rootPart.RotVelocity.Y/10))/2, -math.sin((rootPart.RotVelocity.Y/10))/2), 0.15)
  961. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/3, -math.sin((rootPart.RotVelocity.Y/10))/2, math.sin((-rootPart.RotVelocity.Y/10))/2), 0.15)
  962. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  963. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(0, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(0)), 0.15)
  964. end
  965. else
  966. if coughing == false and talking == false then
  967. angleSpeed = 10
  968. axisSpeed = 10
  969. Humanoid.WalkSpeed = 20
  970. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.55, -0.2) * c_angles(math.rad(90),-math.sin((rootPart.RotVelocity.X/80))/-2, math.sin((rootPart.RotVelocity.Y/2.5))/-2), 0.15)
  971. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15)
  972. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.4)
  973. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.4)
  974. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  975. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(-0.1, 1.5, 0) * c_angles(math.rad(0), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
  976. elseif coughing == true then
  977. Humanoid.WalkSpeed = 8
  978. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.55, 0) * c_angles(math.rad(-10), -math.sin((rootPart.RotVelocity.X/80))/2, math.sin((rootPart.RotVelocity.Y/2.5))/2), 0.15)
  979. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1, 0.9, -0.1) * c_angles(math.rad(100), math.rad(50), math.rad(50)), 0.15)
  980. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.1)
  981. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.1)
  982. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  983. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(-0.1, 1.5, -0.2) * c_angles(math.rad(-30), math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
  984. elseif coughing == false and talking == true then
  985. Humanoid.WalkSpeed = 20
  986. RA_Weld.C0 = clerp(RA_Weld.C0, c_new(1.5, 0.55, -0.2) * c_angles(math.rad(90),-math.sin((rootPart.RotVelocity.X/80))/-2, math.sin((rootPart.RotVelocity.Y/2.5))/-2), 0.15)
  987. LA_Weld.C0 = clerp(LA_Weld.C0, c_new(-1.5, 0.5, 0) * c_angles(math.rad(0),math.rad(0),math.rad(0)), 0.15)
  988. LL_Weld.C0 = clerp(LL_Weld.C0, c_new(-0.5, -1, 0) * c_angles(math.sin(sine/4)/2, math.sin((rootPart.RotVelocity.Y/10))/1, -math.sin((rootPart.RotVelocity.Y/10))/1), 0.4)
  989. RL_Weld.C0 = clerp(RL_Weld.C0, c_new(0.5, -1, 0) * c_angles(-math.sin(sine/4)/2, -math.sin((rootPart.RotVelocity.Y/10))/1, math.sin((-rootPart.RotVelocity.Y/10))/1), 0.4)
  990. Torso_Weld.C0 = clerp(Torso_Weld.C0, c_new(0, -1, 0) * c_angles(math.rad(0), math.rad(0), math.sin((rootPart.RotVelocity.Y/30))/2), 0.15)
  991. Head_Weld.C0 = clerp(Head_Weld.C0, c_new(-0.1, 1.5, 0) * c_angles(-math.sin(sine/1.5)/20, math.sin((rootPart.RotVelocity.Y/2.5))/2, math.rad(10)), 0.15)
  992. end
  993. end
  994. end
  995. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement