Advertisement
StarzoZero

Roblox FE SCP 035 (v2)

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