Advertisement
sawgamer1

Untitled

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