Advertisement
danielaust

better 035

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