Advertisement
nobiclol

test

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