Advertisement
MateusGamerBROficial

SCP

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