Advertisement
voidscriptbuilderr

FE scp 035

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