Advertisement
sawgamer1

Untitled

Nov 26th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 35.74 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. Mouse = Player:GetMouse()
  275. mouse.KeyDown:connect(function(key)
  276. if key == "e" and transform == false and debounce == false and talking == false then
  277. debounce = true
  278. talking = true
  279. SOU = Instance.new("Sound")
  280. SOU.Parent = Character.Torso
  281. SOU.SoundId = "rbxassetid://1384757081"
  282. SOU.Volume = 15
  283. SOU.Looped = false
  284. SOU.Pitch = 1
  285. SOU.TimePosition = 4.5
  286. SOU:Play()
  287. wait(1.5)
  288. talking = false
  289. HairMesh.TextureId = "http://www.roblox.com/asset/?id=101678162"
  290. Character['Body Colors'].HeadColor=BrickColor.new('Really black')
  291. Character['Body Colors'].TorsoColor=BrickColor.new('Really black')
  292. Character['Body Colors'].RightArmColor=BrickColor.new('Really black')
  293. Character['Body Colors'].LeftArmColor=BrickColor.new('Really black')
  294. Character['Body Colors'].RightLegColor=BrickColor.new('Really black')
  295. Character['Body Colors'].LeftLegColor=BrickColor.new('Really black')
  296. shirt.ShirtTemplate = "rbxassetid://767866442"
  297. pants.PantsTemplate = "rbxassetid://842364401"
  298. coroutine.wrap(function()
  299. wait(7)
  300. for i = 1,100 do
  301. Hair.Transparency = Hair.Transparency + 0.01
  302. wait()
  303. end
  304. end)()
  305. DP = Instance.new("Sound")
  306. DP.Parent = Character.Torso
  307. DP.SoundId = "rbxassetid://244502094"
  308. DP.Volume = 10
  309. DP.Looped = true
  310. DP.Pitch = 1
  311. DP:Play()
  312. q=Instance.new('ParticleEmitter',Head)
  313. q.Rate = 500
  314. q.Speed = NumberRange.new(7)
  315. q.VelocitySpread = 0
  316. q.EmissionDirection = "Front"
  317. q.Lifetime = NumberRange.new(0.1,1)
  318. q.Texture = 'rbxassetid://164417280'
  319. q.Acceleration = Vector3.new(0,-50,0)
  320. q.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  321. q.RotSpeed = NumberRange.new(-180, 180)
  322. q.Rotation = NumberRange.new(-360, 360)
  323. q.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  324. coughing = true
  325. wait(10) --28 is the original but it's too long
  326. DP:Stop()
  327. q.Enabled = false
  328. coughing = false
  329. SOU:Stop()
  330. wait(1)
  331. talking = true
  332. PRTCL2.Enabled = true
  333. PRTCL.Enabled = true
  334. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
  335. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=558227098"
  336. Head.face.Texture = "rbxassetid://256293532"
  337. Head.face.Color3 = Color3.new(0,0,0)
  338. S = Instance.new("Sound")
  339. S.Parent = Character.Torso
  340. S.SoundId = "rbxassetid://858697889"
  341. S.Volume = 10
  342. S.Looped = false
  343. S.Pitch = 1
  344. S:Play()
  345. wait(2)
  346. talking = false
  347. PRTCL2.Enabled = false
  348. PRTCL.Enabled = false
  349. q:Destroy()
  350. transform = true
  351. end
  352.  
  353.  
  354. if key == "v" and transform == true and PRTCL.Enabled == false and talking == false then
  355. talking = true
  356. lit.Brightness = 1
  357. PRTCL2.Enabled = true
  358. PRTCL.Enabled = true
  359. S = Instance.new("Sound")
  360. S.Parent = Character.Torso
  361. S.SoundId = "rbxassetid://398631872"
  362. S.Volume = 10
  363. S.Looped = false
  364. S.Pitch = 1
  365. S.TimePosition = 2
  366. S:Play()
  367. wait(14)
  368. PRTCL2.Enabled = false
  369. PRTCL.Enabled = false
  370. lit.Brightness = 0
  371. talking = false
  372. end
  373.  
  374. laughing = false
  375.  
  376.  
  377. if key == "r" and transform == true and PRTCL.Enabled == false and talking == false then
  378. talking = true
  379. lit.Brightness = 1
  380. PRTCL2.Enabled = true
  381. PRTCL.Enabled = true
  382. S = Instance.new("Sound")
  383. S.Parent = Character.Torso
  384. S.SoundId = "rbxassetid://177359995"
  385. S.Volume = 10
  386. S.Looped = false
  387. S.Pitch = 1
  388. S:Play()
  389. wait(3.35)
  390. PRTCL2.Enabled = false
  391. PRTCL.Enabled = false
  392. lit.Brightness = 0
  393. talking = false
  394. end
  395.  
  396.  
  397. if key == "t" and transform == true and PRTCL.Enabled == false and talking == false then
  398. talking = true
  399. PRTCL2.Enabled = true
  400. PRTCL.Enabled = true
  401. lit.Brightness = 1
  402. S = Instance.new("Sound")
  403. S.Parent = Character.Torso
  404. S.SoundId = "rbxassetid://858697889"
  405. S.Volume = 10
  406. S.Looped = false
  407. S.Pitch = 1
  408. S:Play()
  409. wait(3.8)
  410. PRTCL2.Enabled = false
  411. PRTCL.Enabled = false
  412. lit.Brightness = 0
  413. talking = false
  414. end
  415.  
  416.  
  417. if key == "y" and transform == true then
  418. S = Instance.new("Sound")
  419. S.Parent = Character.Torso
  420. S.SoundId = "rbxassetid://708003498"
  421. S.Volume = 10
  422. S.Looped = false
  423. S.Pitch = 1
  424. S:Play()
  425. end
  426.  
  427.  
  428. if key == "r" and transform == false and talking == false then
  429. talking = true
  430. S = Instance.new("Sound")
  431. S.Parent = Character.Torso
  432. S.SoundId = "rbxassetid://155074440"
  433. S.Volume = 10
  434. S.Looped = false
  435. S.Pitch = 1
  436. S.TimePosition = 0.4
  437. S:Play()
  438. wait(6)
  439. talking = false
  440. end
  441.  
  442.  
  443. if key == "t" and transform == false and talking == false then
  444. talking = true
  445. S = Instance.new("Sound")
  446. S.Parent = Character.Torso
  447. S.SoundId = "rbxassetid://494478995"
  448. S.Volume = 10
  449. S.Looped = false
  450. S.Pitch = 1
  451. S:Play()
  452. wait(5.04)
  453. talking = false
  454. end
  455.  
  456. q1=Instance.new('ParticleEmitter',Head)
  457. q1.Rate = 500
  458. q1.Speed = NumberRange.new(7)
  459. q1.VelocitySpread = 0
  460. q1.EmissionDirection = "Front"
  461. q1.Lifetime = NumberRange.new(0.1,1)
  462. q1.Texture = 'rbxassetid://164417280'
  463. q1.Acceleration = Vector3.new(0,-50,0)
  464. q1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  465. q1.RotSpeed = NumberRange.new(-180, 180)
  466. q1.Rotation = NumberRange.new(-360, 360)
  467. q1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  468. q1.Enabled = false
  469.  
  470.  
  471. if key == "f" and transform == true then
  472. S = Instance.new("Sound")
  473. S.Parent = Character.Torso
  474. S.SoundId = "rbxassetid://176850421"
  475. S.Volume = 10
  476. S.Looped = false
  477. S.Pitch = 1
  478. S:Play()
  479. end
  480.  
  481. toggle = false
  482.  
  483.  
  484. if key == "f" and transform == false and talking == false then
  485. talking = true
  486. S = Instance.new("Sound")
  487. S.Parent = Character.Torso
  488. S.SoundId = "rbxassetid://1765588386"
  489. S.Volume = 10
  490. S.Looped = false
  491. S.Pitch = 1
  492. S:Play()
  493. wait(18.5)
  494. talking = false
  495. end
  496.  
  497.  
  498. if key == "j" and transform == false and talking == false then
  499. talking = true
  500. S = Instance.new("Sound")
  501. S.Parent = Character.Torso
  502. S.SoundId = "rbxassetid://936161138"
  503. S.Volume = 10
  504. S.Looped = false
  505. S.Pitch = 1
  506. S:Play()
  507. wait(24.73)
  508. talking = false
  509. end
  510.  
  511.  
  512. if key == "k" and transform == false and talking == false then
  513. talking = true
  514. S = Instance.new("Sound")
  515. S.Parent = Character.Torso
  516. S.SoundId = "rbxassetid://936159847"
  517. S.Volume = 10
  518. S.Looped = false
  519. S.Pitch = 1
  520. S:Play()
  521. wait(27.22)
  522. talking = false
  523. end
  524.  
  525.  
  526. if key == "l" and transform == false and talking == false then
  527. talking = true
  528. S = Instance.new("Sound")
  529. S.Parent = Character.Torso
  530. S.SoundId = "rbxassetid://936162120"
  531. S.Volume = 10
  532. S.Looped = false
  533. S.Pitch = 1
  534. S:Play()
  535. wait(25.3)
  536. talking = false
  537. end
  538.  
  539.  
  540. if transform == true then
  541.  
  542.  
  543. if key == "x" then
  544. if coughing == false then
  545. coughing = true
  546. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520910"
  547. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=1772096775"
  548. q1=Instance.new('ParticleEmitter',Head)
  549. q1.Name = "q1"
  550. q1.Rate = 500
  551. q1.Speed = NumberRange.new(7)
  552. q1.VelocitySpread = 0
  553. q1.EmissionDirection = "Front"
  554. q1.Lifetime = NumberRange.new(0.1,1)
  555. q1.Texture = 'rbxassetid://164417280'
  556. q1.Acceleration = Vector3.new(0,-50,0)
  557. q1.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  558. q1.RotSpeed = NumberRange.new(-180, 180)
  559. q1.Rotation = NumberRange.new(-360, 360)
  560. q1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  561. ZZ = Instance.new("Sound")
  562. ZZ.Parent = Character.Torso
  563. ZZ.SoundId = "rbxassetid://244502094"
  564. ZZ.Volume = 10
  565. ZZ.Looped = true
  566. ZZ.Pitch = 1
  567. ZZ:Play()
  568. ZZ2 = Instance.new("Sound")
  569. ZZ2.Parent = Character.Torso
  570. ZZ2.SoundId = "rbxassetid://300046017"
  571. ZZ2.Volume = 2
  572. ZZ2.Looped = true
  573. ZZ2.Pitch = 1
  574. ZZ2:Play()
  575. elseif coughing == true then
  576. coughing = false
  577. HoodMesh.MeshId = "http://www.roblox.com/asset/?id=13520257"
  578. HoodMesh.TextureId = "http://www.roblox.com/asset/?id=558227098"
  579. ZZ:Destroy()
  580. ZZ2:Destroy()
  581. PRTCL2.Enabled = false
  582. PRTCL.Enabled = false
  583. game:GetService("Players").ImaBoss838.Character.Head.q1:Destroy()
  584. q1.Enabled = false
  585. q1:Destroy()
  586. end
  587. end
  588.  
  589.  
  590. end
  591.  
  592.  
  593.  
  594. if key == "m" and talking == false then
  595. talking = true
  596. S = Instance.new("Sound")
  597. S.Parent = Character.Torso
  598. S.SoundId = "rbxassetid://1766163151"
  599. S.Volume = 10
  600. S.Looped = false
  601. S.Pitch = 1
  602. S:Play()
  603. wait(2.38)
  604. talking = false
  605. end
  606.  
  607.  
  608. if key == "n" and talking == false then
  609. talking = true
  610. S = Instance.new("Sound")
  611. S.Parent = Character.Torso
  612. S.SoundId = "rbxassetid://1766162663"
  613. S.Volume = 10
  614. S.Looped = false
  615. S.Pitch = 1
  616. S:Play()
  617. wait(4.13)
  618. talking = false
  619. end
  620.  
  621. if key == "two" then
  622. game:GetService("Players").ImaBoss838.Character.Head.q1:Destroy()
  623. end end)
  624.  
  625. function findCloseHumanoid(centre, distance)
  626. local tab = {}
  627. for _, child in pairs(game.Workspace:GetChildren()) do
  628. if child:findFirstChild("Humanoid") and child:findFirstChild("Humanoid") ~= Humanoid and child:findFirstChild("Torso") then
  629. local vtors = child.Torso
  630. local mag = math.abs((vtors.Position - centre).magnitude)
  631. if distance >= mag then
  632. table.insert(tab, child.Humanoid)
  633. end
  634. end
  635. end
  636. return tab
  637. end
  638.  
  639.  
  640. function onTouch(part)
  641.  
  642. local humanoid = part.Parent:findFirstChild("Humanoid")
  643. local model = part.Parent
  644. local torso = part.Parent:findFirstChild("Torso")
  645. local head = part.Parent:findFirstChild("Head")
  646. local leftleg = part.Parent:findFirstChild("Left Leg")
  647. local rightleg = part.Parent:findFirstChild("Right Leg")
  648. local leftarm = part.Parent:findFirstChild("Left Arm")
  649. local rightarm = part.Parent:findFirstChild("Right Arm")
  650. if humanoid.Health <= 0 then
  651. return
  652. end
  653. if transform == false then
  654. return
  655. end
  656.  
  657. for i, v in pairs(findCloseHumanoid(Torso.Position, 10)) do
  658. humanoid.Health = 0
  659. head.BrickColor = BrickColor.new("Really black")
  660. torso.BrickColor = BrickColor.new("Really black")
  661. leftleg.BrickColor = BrickColor.new("Really black")
  662. rightleg.BrickColor = BrickColor.new("Really black")
  663. rightarm.BrickColor = BrickColor.new("Really black")
  664. leftarm.BrickColor = BrickColor.new("Really black")
  665. torso.Anchored = true
  666.  
  667. e=Instance.new('Part', model)
  668. e.Size = Vector3.new(2.25,2.25,2.25)
  669. e.Transparency = 1
  670. e.Anchored = true
  671. e.CFrame = CFrame.new(head.Position)
  672.  
  673.  
  674. q=Instance.new('ParticleEmitter', e)
  675. q.Rate = 500
  676. q.Speed = NumberRange.new(7)
  677. q.VelocitySpread = 40
  678. q.Lifetime = NumberRange.new(0.1,1)
  679. q.Texture = 'rbxassetid://164417280'
  680. q.Acceleration = Vector3.new(0,-50,0)
  681. q.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0.1), NumberSequenceKeypoint.new(1, 0.01, 0.01)})
  682. q.RotSpeed = NumberRange.new(-180, 180)
  683. q.Rotation = NumberRange.new(-360, 360)
  684. q.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.2, 0), NumberSequenceKeypoint.new(0.8, 0), NumberSequenceKeypoint.new(1, 1)})
  685.  
  686. torso.Anchored = true
  687. rightleg.Anchored = true
  688. leftleg.Anchored = true
  689. rightarm.Anchored = true
  690. leftarm.Anchored = true
  691. ded = Instance.new("Sound")
  692. ded.Parent = torso
  693. ded.SoundId = "rbxassetid://658228911"
  694. ded.Volume = 3
  695. ded.Looped = false
  696. wait()
  697. ded:Play()
  698. end
  699.  
  700. end
  701.  
  702.  
  703.  
  704. Character.Torso.Touched:connect(onTouch)
  705.  
  706. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position, Direction, MaxDistance, IgnoreDescendants
  707. return game:GetService("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  708. end
  709.  
  710. function QuaternionFromCFrame(cf)
  711. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  712. local trace = m00 + m11 + m22
  713. if trace > 0 then
  714. local s = math.sqrt(1 + trace)
  715. local recip = 0.5/s
  716. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  717. else
  718. local i = 0
  719. if m11 > m00 then
  720. i = 1
  721. end
  722. if m22 > (i == 0 and m00 or m11) then
  723. i = 2
  724. end
  725. if i == 0 then
  726. local s = math.sqrt(m00-m11-m22+1)
  727. local recip = 0.5/s
  728. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  729. elseif i == 1 then
  730. local s = math.sqrt(m11-m22-m00+1)
  731. local recip = 0.5/s
  732. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  733. elseif i == 2 then
  734. local s = math.sqrt(m22-m00-m11+1)
  735. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  736. end
  737. end
  738. end
  739.  
  740. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  741. local xs, ys, zs = x + x, y + y, z + z
  742. local wx, wy, wz = w*xs, w*ys, w*zs
  743. local xx = x*xs
  744. local xy = x*ys
  745. local xz = x*zs
  746. local yy = y*ys
  747. local yz = y*zs
  748. local zz = z*zs
  749. 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))
  750. end
  751.  
  752. function QuaternionSlerp(a, b, t)
  753. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  754. local startInterp, finishInterp;
  755. if cosTheta >= 0.0001 then
  756. if (1 - cosTheta) > 0.0001 then
  757. local theta = math.acos(cosTheta)
  758. local invSinTheta = 1/math.sin(theta)
  759. startInterp = math.sin((1-t)*theta)*invSinTheta
  760. finishInterp = math.sin(t*theta)*invSinTheta
  761. else
  762. startInterp = 1-t
  763. finishInterp = t
  764. end
  765. else
  766. if (1+cosTheta) > 0.0001 then
  767. local theta = math.acos(-cosTheta)
  768. local invSinTheta = 1/math.sin(theta)
  769. startInterp = math.sin((t-1)*theta)*invSinTheta
  770. finishInterp = math.sin(t*theta)*invSinTheta
  771. else
  772. startInterp = t-1
  773. finishInterp = t
  774. end
  775. end
  776. 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
  777. end
  778.  
  779. function clerp(a, b, t)
  780. local qa = {QuaternionFromCFrame(a)}
  781. local qb = {QuaternionFromCFrame(b)}
  782. local ax, ay, az = a.x, a.y, a.z
  783. local bx, by, bz = b.x, b.y, b.z
  784. local _t = 1-t
  785. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  786. end
  787.  
  788. swait()
  789. LA_Weld = newWeld(Torso, Left_Arm, -1.5, 0.5, 0)
  790. Left_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  791. RA_Weld = newWeld(Torso, Right_Arm, 1.5, 0.5, 0)
  792. Right_Arm.Weld.C1 = CFrame.new(0, 0.5, 0)
  793. LL_Weld = newWeld(Torso, Left_Leg, -0.5, -1, 0)
  794. Left_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Left_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  795. RL_Weld = newWeld(Torso, Right_Leg, 0.5, -1, 0)
  796. Right_Leg.Weld.C1 = CFrame.new(0, 1, 0) -- Right_Leg.Weld.C1 = CFrame.new(0, 1, 0.15)
  797. Torso_Weld = newWeld(rootPart, Torso, 0, -1, 0)
  798. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  799. Head_Weld = newWeld(Torso, Head, 0, 1.5, 0)
  800.  
  801. for i,v in pairs(Character:GetChildren()) do
  802. if v:IsA('Accoutrement') or v:IsA('Shirt') or v:IsA('Pants') then
  803. v:Destroy()
  804. end
  805. end
  806.  
  807. Head.face.Texture = "rbxassetid://141728515"
  808. Head.face.Color3 = Color3.new(0,0,0)
  809.  
  810. shirt = Instance.new("Shirt",Character)
  811. pants = Instance.new("Pants",Character)
  812. wait()
  813. shirt.ShirtTemplate = "rbxassetid://120471954"
  814. pants.PantsTemplate = "rbxassetid://120471978"
  815.  
  816. Character['Body Colors'].HeadColor=BrickColor.new('Linen')
  817. Character['Body Colors'].TorsoColor=BrickColor.new('Linen')
  818. Character['Body Colors'].RightArmColor=BrickColor.new('Linen')
  819. Character['Body Colors'].LeftArmColor=BrickColor.new('Linen')
  820. Character['Body Colors'].RightLegColor=BrickColor.new('Linen')
  821. Character['Body Colors'].LeftLegColor=BrickColor.new('Linen')
  822.  
  823. Humanoid.DisplayDistanceType='None'
  824.  
  825. sine = 0
  826. change = 1
  827. sprint=false
  828. local punches={
  829. a=false,
  830. b=false,
  831. c=false
  832. }
  833.  
  834. UIService.InputBegan:connect(function(Input,GUIProcessed)
  835. if not GUIProcessed and Input.UserInputType==Enum.UserInputType.MouseButton1 then
  836. if punches.a==false then
  837. punches.a=true wait(.4) punches.a=false
  838. else
  839. punches.a=true
  840. print('a ',punches.a)
  841. if punches.b==false then
  842. punches.b=true wait(.4) punches.b=false
  843. else
  844. punches.b=true
  845. print('b ',punches.b)
  846. if punches.c==false then
  847. punches.c=true wait(.4) punches.c=false
  848. else
  849. punches.c=true
  850. print('c ',punches.c)
  851. print('a ',punches.a,'b ',punches.b,'c ',punches.c)
  852. end
  853. end
  854. end
  855. elseif not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift and transform == true then
  856. sprint=true
  857. end
  858. end)
  859.  
  860. UIService.InputEnded:connect(function(Input,GUIProcessed)
  861. if not GUIProcessed and Input.KeyCode==Enum.KeyCode.LeftShift then
  862. sprint=false
  863. end
  864. end)
  865.  
  866. Humanoid.Died:connect(function()
  867. q.Enabled = true
  868. S = Instance.new("Sound")
  869. S.Parent = Character.Torso
  870. S.SoundId = "rbxassetid://891043624"
  871. S.Volume = 10
  872. S.Looped = false
  873. S.Pitch = 1
  874. S:Play()
  875. S = Instance.new("Sound")
  876. S.Parent = Character.Torso
  877. S.SoundId = "rbxassetid://429400881"
  878. S.Volume = 5
  879. S.Looped = false
  880. S.Pitch = 1
  881. S:Play()
  882. end)
  883.  
  884. game:GetService("RunService").Heartbeat:connect(function()
  885. Angle = (Angle % 100) + angleSpeed/10
  886. Axis = (Axis % 100) + axisSpeed/10
  887. walkingMagnitude = Vector3.new(rootPart.Velocity.X, 0, rootPart.Velocity.Z).magnitude
  888. jumpVel = Torso.Velocity.Y
  889. sine = change + sine
  890.  
  891. if(Humanoid.Jump) and jumpVel > 1 then
  892. currentAnim = "Jumping"
  893. elseif walkingMagnitude < 2 then
  894. currentAnim = "Idling"
  895. elseif isSprinting == true then
  896. currentAnim = "Sprinting"
  897. elseif walkingMagnitude > 2 then
  898. currentAnim = "Walking"
  899. elseif isAttacking == true then
  900. currentAnim = "Attacking"
  901. end
  902.  
  903. if currentAnim == "Jumping" and Animations == false then
  904. angleSpeed = 2
  905. axisSpeed = 2
  906. 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)
  907. 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)
  908. 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)
  909. 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)
  910. 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)
  911. 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)
  912. elseif currentAnim == "Idling" and Animations == false then
  913. if coughing == false and talking == false then
  914. angleSpeed = 1
  915. axisSpeed = 1
  916. change = 0.5
  917. 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)
  918. 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)
  919. 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)
  920. 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)
  921. 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)
  922. 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)
  923. elseif coughing == true then
  924. 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)
  925. 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)
  926. 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)
  927. 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)
  928. 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)
  929. 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)
  930. elseif talking == true and coughing == false then
  931. 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)
  932. 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)
  933. 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)
  934. 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)
  935. 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)
  936. 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)
  937. end
  938. elseif currentAnim == "Walking" and Animations == false then
  939. if sprint==false then
  940. if coughing == false and talking == false then
  941. angleSpeed = 1
  942. axisSpeed = 1
  943. Humanoid.WalkSpeed = 10
  944. 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)
  945. 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)
  946. 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)
  947. 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)
  948. 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)
  949. 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)
  950. elseif coughing == true then
  951. Humanoid.WalkSpeed = 3
  952. 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)
  953. 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)
  954. 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)
  955. 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)
  956. 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)
  957. 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)
  958. elseif coughing == false and talking == true then
  959. Humanoid.WalkSpeed = 10
  960. 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)
  961. 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)
  962. 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)
  963. 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)
  964. 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)
  965. 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)
  966. end
  967. else
  968. if coughing == false and talking == false then
  969. angleSpeed = 10
  970. axisSpeed = 10
  971. Humanoid.WalkSpeed = 20
  972. 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)
  973. 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)
  974. 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)
  975. 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)
  976. 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)
  977. 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)
  978. elseif coughing == true then
  979. Humanoid.WalkSpeed = 8
  980. 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)
  981. 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)
  982. 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)
  983. 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)
  984. 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)
  985. 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)
  986. elseif coughing == false and talking == true then
  987. Humanoid.WalkSpeed = 20
  988. 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)
  989. 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)
  990. 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)
  991. 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)
  992. 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)
  993. 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)
  994. end
  995. end
  996. end
  997. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement