Advertisement
Orangeplayer1431

scp 035

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