Advertisement
BAconTUbe

SCP-035 FE

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