Advertisement
Mediakiller7Cool

Y8

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