Advertisement
Guest User

Untitled

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