sawgamer1

Untitled

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