Advertisement
MrSlakyx

dadadad

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