XxmadmaxgamexX

Mask

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