Advertisement
Silver_cole

epic mask

Sep 29th, 2019
738
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
  6.     print("FE Compatibility code V2 by Mokiros")
  7.     local RealPlayer = RealPlayer
  8.     script.Parent = RealPlayer.Character
  9.  
  10.     --Fake event to make stuff like Mouse.KeyDown work
  11.     local Disconnect_Function = function(this)
  12.         this[1].Functions[this[2]] = nil
  13.     end
  14.     local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15.     local FakeEvent_Metatable = {__index={
  16.         Connect = function(this,f)
  17.             local i = tostring(math.random(0,10000))
  18.             while this.Functions[i] do
  19.                 i = tostring(math.random(0,10000))
  20.             end
  21.             this.Functions[i] = f
  22.             return setmetatable({this,i},Disconnect_Metatable)
  23.         end
  24.     }}
  25.     FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26.     local function fakeEvent()
  27.         return setmetatable({Functions={}},FakeEvent_Metatable)
  28.     end
  29.  
  30.     --Creating fake input objects with fake variables
  31.     local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32.     FakeMouse.keyUp = FakeMouse.KeyUp
  33.     FakeMouse.keyDown = FakeMouse.KeyDown
  34.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37.     end}
  38.     --Merged 2 functions into one by checking amount of arguments
  39.     CAS.UnbindAction = CAS.BindAction
  40.  
  41.     --This function will trigger the events that have been :Connect()'ed
  42.     local function TriggerEvent(self,ev,...)
  43.         for _,f in pairs(self[ev].Functions) do
  44.             f(...)
  45.         end
  46.     end
  47.     FakeMouse.TriggerEvent = TriggerEvent
  48.     UIS.TriggerEvent = TriggerEvent
  49.  
  50.     --Client communication
  51.     local Event = Instance.new("RemoteEvent")
  52.     Event.Name = "UserInput_Event"
  53.     Event.OnServerEvent:Connect(function(plr,io)
  54.         if plr~=RealPlayer then return end
  55.         FakeMouse.Target = io.Target
  56.         FakeMouse.Hit = io.Hit
  57.         if not io.isMouse then
  58.             local b = io.UserInputState == Enum.UserInputState.Begin
  59.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60.                 return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61.             end
  62.             if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63.                 return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64.             end
  65.             for _,t in pairs(CAS.Actions) do
  66.                 for _,k in pairs(t.Keys) do
  67.                     if k==io.KeyCode then
  68.                         t.Function(t.Name,io.UserInputState,io)
  69.                     end
  70.                 end
  71.             end
  72.             FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73.             UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74.         end
  75.     end)
  76.     Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77.     local Mouse = owner:GetMouse()
  78.     local UIS = game:GetService("UserInputService")
  79.     local input = function(io,RobloxHandled)
  80.         if RobloxHandled then return end
  81.         --Since InputObject is a client-side instance, we create and pass table instead
  82.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83.     end
  84.     UIS.InputBegan:Connect(input)
  85.     UIS.InputEnded:Connect(input)
  86.     local h,t
  87.     --Give the server mouse data every second frame, but only if the values changed
  88.     --If player is not moving their mouse, client won't fire events
  89.     local HB = game:GetService("RunService").Heartbeat
  90.     while true do
  91.         if h~=Mouse.Hit or t~=Mouse.Target then
  92.             h,t=Mouse.Hit,Mouse.Target
  93.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  94.         end
  95.         --Wait 2 frames
  96.         for i=1,2 do
  97.             HB:Wait()
  98.         end
  99.     end]==],script)
  100.  
  101.     ----Sandboxed game object that allows the usage of client-side methods and services
  102.     --Real game object
  103.     local RealGame = game
  104.  
  105.     --Metatable for fake service
  106.     local FakeService_Metatable = {
  107.         __index = function(self,k)
  108.             local s = rawget(self,"_RealService")
  109.             if s then
  110.                 return typeof(s[k])=="function"
  111.                 and function(_,...)return s[k](s,...)end or s[k]
  112.             end
  113.         end,
  114.         __newindex = function(self,k,v)
  115.             local s = rawget(self,"_RealService")
  116.             if s then s[k]=v end
  117.         end
  118.     }
  119.     local function FakeService(t,RealService)
  120.         t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  121.         return setmetatable(t,FakeService_Metatable)
  122.     end
  123.  
  124.     --Fake game object
  125.     local FakeGame = {
  126.         GetService = function(self,s)
  127.             return rawget(self,s) or RealGame:GetService(s)
  128.         end,
  129.         Players = FakeService({
  130.             LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  131.         },"Players"),
  132.         UserInputService = FakeService(UIS,"UserInputService"),
  133.         ContextActionService = FakeService(CAS,"ContextActionService"),
  134.         RunService = FakeService({
  135.             _btrs = {},
  136.             RenderStepped = RealGame:GetService("RunService").Heartbeat,
  137.             BindToRenderStep = function(self,name,_,fun)
  138.                 self._btrs[name] = self.Heartbeat:Connect(fun)
  139.             end,
  140.             UnbindFromRenderStep = function(self,name)
  141.                 self._btrs[name]:Disconnect()
  142.             end,
  143.         },"RunService")
  144.     }
  145.     rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  146.     FakeGame.service = FakeGame.GetService
  147.     FakeService(FakeGame,game)
  148.     --Changing owner to fake player object to support owner:GetMouse()
  149.     game,owner = FakeGame,FakeGame.Players.LocalPlayer
  150. end
  151.  
  152. --F = Mask On/ Mask Off (Hides your name)--
  153.  
  154. --Q = Chill--
  155.  
  156. --Z = Bypassed Audio--
  157.  
  158.  
  159.  
  160.  
  161. --Windows95/FR34KY @V3rm
  162. debounce = 0;
  163.  
  164. --Vouch if you're going to use it.
  165. --Thanks,
  166. --Yeah, im kinda terrible at scripting.
  167.  
  168.  
  169.  
  170. local player = game.Players.LocalPlayer
  171. repeat wait() until player.Character.Humanoid
  172. local humanoid = player.Character.Humanoid
  173. local mouse = player:GetMouse()
  174. --game.Players.LocalPlayer.Character.Shirt.ShirtTemplate='rbxassetid://473465498'
  175. local player=game.Players.LocalPlayer;
  176. local char=game.Players.LocalPlayer.Character;
  177. local humanoid = player.Character.Humanoid;
  178. Tool=Instance.new('Tool', game.Players.LocalPlayer.Backpack);
  179. Tool.GripRight=Vector3.new(0.865, 0.105, -0.49);
  180. Tool.GripUp=Vector3.new(-0.023, 0.985, 0.171);
  181. Tool.GripPos=Vector3.new(0.064, -0.3, 0.9);
  182. Tool.GripForward=Vector3.new(0.485, 0.14, -0.863); --0.485, 0.14, -0.863
  183. Tool.Name='Shotgun';
  184. Handle=Instance.new('Part', Tool);
  185. Handle.Name = 'Handle';
  186. Handle.BrickColor=BrickColor.new('Really black')
  187. Handle.Size=Vector3.new(0.26, 1.11, 4.85);
  188. Handle.Position=Vector3.new(-18.53, 0.555, -16.825)
  189. gunfire=Instance.new('Part', Tool)
  190. gunfire.Name='GunFire'
  191. gunfire.Size=Vector3.new(0.2, 0.2, 0.2)
  192. gunfire.Transparency=1
  193. gunfire.Position=Vector3.new(-18.56, 1.1, -19.35)
  194. gunfirefx=Instance.new('BillboardGui', gunfire)
  195. gunfirefx.Enabled=false
  196. gunfirefx.Adornee = gunfire
  197. gunfirefx.Size=UDim2.new(1.1, 0, 1.1, 0)
  198. gunfirefx2=Instance.new('ImageLabel', gunfirefx)
  199. gunfirefx2.Image='http://www.roblox.com/asset/?id=117472237'
  200. gunfirefx2.BackgroundTransparency=1
  201. gunfirefx2.Size=UDim2.new(1.2, 0, 1.2, 0)
  202.  
  203.  
  204. c4mesh=Instance.new('SpecialMesh', Handle);
  205. c4mesh.MeshType = 'FileMesh';
  206. c4mesh.MeshId='http://www.roblox.com/asset/?id=94219391';
  207. c4mesh.TextureId='http://www.roblox.com/asset/?id=65508886';
  208. c4mesh.Scale=Vector3.new(0.75, 0.75, 0.75);
  209. light=Instance.new('PointLight', Handle);
  210. light.Color = Color3.new(255, 255, 0)
  211. light.Range=10;
  212. light.Enabled=false;
  213.  
  214. --Weld Connector
  215. local prev
  216. local parts = Tool:GetChildren()
  217. for i = 1,#parts do
  218. if (parts[i].className == "Part") then
  219. if (prev ~= nil)then
  220. local weld = Instance.new("Weld")
  221. weld.Part0 = prev
  222. weld.Part1 = parts[i]
  223. weld.C0 = prev.CFrame:inverse()
  224. weld.C1 = parts[i].CFrame:inverse()
  225. weld.Parent = prev
  226. end
  227. prev = parts[i]
  228. end
  229. end
  230. --end
  231. local Prepare=Instance.new("Animation", player.Character);
  232. Prepare.AnimationId="http://www.roblox.com/asset?id=168086975";
  233. local playAnim = humanoid:LoadAnimation(Prepare)
  234.  
  235. local Prepare3=Instance.new("Animation", player.Character);
  236. Prepare3.AnimationId="http://www.roblox.com/asset?id=94331086";
  237. local Prepare2Play = humanoid:LoadAnimation(Prepare3)
  238.  
  239. local Prepare2=Instance.new("Animation", player.Character);
  240. Prepare2.AnimationId="http://www.roblox.com/asset?id=94242777";
  241. local playAnim6 = humanoid:LoadAnimation(Prepare)
  242. standed=true
  243. local shoot=Instance.new("Animation", player.Character);
  244. shoot.AnimationId="http://www.roblox.com/Asset?ID=94332152";
  245. local playAnim2 = humanoid:LoadAnimation(shoot)
  246. local reload=Instance.new("Animation", player.Character);
  247. reload.AnimationId="http://www.roblox.com/Asset?ID=94245658";
  248. local playAnim3 = humanoid:LoadAnimation(reload)
  249. reloadsound=Instance.new('Sound', char.Torso)
  250. reloadsound.Volume=4
  251. reloadsound.SoundId='rbxassetid://255061173'
  252.  
  253. equip=Instance.new('Sound', char.Torso)
  254. equip.Volume=4
  255. equip.SoundId='rbxassetid://131045401'
  256.  
  257. equip2=Instance.new('Sound', char.Torso)
  258. equip2.Volume=4
  259. equip2.SoundId='rbxassetid://131045429'
  260. function equipped(mouse)
  261. function Shoot()
  262. if standed==false then
  263. if debounce == 0 then
  264. debounce = 1
  265. if mouse.Target ~= nil then
  266. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil and mouse.Target.Name ~= "Head" then
  267. mouse.Target.Parent.Humanoid:TakeDamage(100)
  268. hit=Instance.new('Sound', mouse.Target.Parent.Torso)
  269.  
  270. hit.Volume=7
  271. hit.SoundId='rbxassetid://159970596'
  272. hit:Play()
  273.  
  274. elseif mouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil then
  275. mouse.Target.Parent.Parent.Humanoid:TakeDamage(100)
  276.  
  277. hit=Instance.new('Sound', mouse.Target.Parent.Parent.Torso)
  278. hit.Volume=7
  279. hit.SoundId='rbxassetid://159970596'
  280. hit:Play()
  281. elseif mouse.Target.Name == "Part" then
  282. Hit = mouse.hit
  283. if Hit==nil then return end
  284. I = Instance.new("Part")
  285. I.Parent = game.Workspace
  286. I.CFrame = Hit
  287. I.Anchored=true
  288. I.Transparency=1
  289. I.Anchored=true
  290. I.CanCollide=false
  291. Pa=Instance.new('ParticleEmitter', I)
  292. Pa.Size = NumberSequence.new(0.2)
  293. Pa.Speed = NumberRange.new(40)
  294. Pa.Lifetime=NumberRange.new(0.4)
  295. Pa.RotSpeed = NumberRange.new(-255, 250)
  296. Pa.Texture = 'rbxassetid://316915922'
  297. Pa.LightEmission = 0
  298. Pa.EmissionDirection='Back'
  299. Pa.VelocitySpread = 250
  300. Pa.Rate = 500
  301. --
  302. Pa2=Instance.new('ParticleEmitter', I)
  303. Pa2.Size = NumberSequence.new(0.2)
  304. Pa2.Speed = NumberRange.new(40)
  305. Pa2.Lifetime=NumberRange.new(0.4)
  306. Pa2.RotSpeed = NumberRange.new(-255, 250)
  307. Pa2.Texture = 'rbxassetid://316915922'
  308. Pa2.LightEmission = 0
  309. Pa2.EmissionDirection='Back'
  310. Pa2.VelocitySpread = 250
  311. Pa2.Rate = 1000
  312. --
  313. Pa3=Instance.new('ParticleEmitter', I)
  314. Pa3.Size = NumberSequence.new(0.2)
  315. Pa3.Speed = NumberRange.new(40)
  316. Pa3.Lifetime=NumberRange.new(0.4)
  317. Pa3.RotSpeed = NumberRange.new(-255, 250)
  318. Pa3.Texture = 'rbxassetid://316915922'
  319. Pa3.LightEmission = 0
  320. Pa3.EmissionDirection='Back'
  321. Pa3.VelocitySpread = 250
  322. Pa3.Rate = 1000
  323.  
  324. --
  325. Pa4=Instance.new('ParticleEmitter', I)
  326. Pa4.Size = NumberSequence.new(0.4)
  327. Pa4.Speed = NumberRange.new(40)
  328. Pa4.Lifetime=NumberRange.new(0.4)
  329. Pa4.RotSpeed = NumberRange.new(-255, 250)
  330. Pa4.Texture = 'rbxassetid://316915922'
  331. Pa4.LightEmission = 0
  332. Pa4.EmissionDirection='Back'
  333. Pa4.VelocitySpread = 250
  334. Pa4.Rate = 1000
  335.  
  336. wait(0.1)
  337. Pa.Enabled=false
  338. Pa2.Enabled=false
  339. Pa3.Enabled=false
  340. Pa4.Enabled=false
  341.  
  342. hit=Instance.new('Sound', I)
  343. hit.Volume=5
  344. hit.SoundId='rbxassetid://159970596'
  345. hit:Play()
  346.  
  347. hit2=Instance.new('Sound', I)
  348. hit2.Volume=14
  349. hit2.SoundId='rbxassetid://516789356'
  350. hit2:Play()
  351. end
  352. end
  353.  
  354. playAnim2:Play()
  355. Prepare2Play:Stop()
  356. light.Enabled=true;
  357. gunfirefx.Enabled=true
  358. shootsound=Instance.new('Sound', char.Torso)
  359. shootsound.Volume=6
  360. shootsound.SoundId='rbxassetid://331409731'
  361. shootsound:Play()
  362. wait(0.01)
  363. light.Enabled=false;
  364. gunfirefx.Enabled=false
  365.  
  366. wait(1)
  367. Prepare2Play:Play()
  368. if hit then
  369. wait(0.6)
  370. I:Destroy()
  371. else
  372. print'hh'
  373. end
  374. debounce = 0
  375. end
  376. end end
  377. mouse.Button1Down:connect(Shoot)
  378. end
  379.  
  380. Tool.Equipped:connect(equipped)
  381.  
  382. local player = game.Players.LocalPlayer
  383. repeat wait() until player.Character.Humanoid
  384. local humanoid = player.Character.Humanoid
  385. local mouse = player:GetMouse()
  386.  
  387. local reload=Instance.new("Animation", player.Character);
  388. reload.AnimationId="http://www.roblox.com/Asset?ID=94245658";
  389. local playAnim3 = humanoid:LoadAnimation(reload)
  390. reloading=false
  391. mouse.KeyDown:connect(function(key)
  392. if key == "r" then
  393. if reloading==true then
  394. playAnim:Stop()
  395. playAnim3:Play()
  396. Tool.GripForward=Vector3.new(-0.501, 0.137, -0.855);
  397. Prepare2Play:Stop()
  398. reloadsound:Play()
  399. wait(0.2)
  400. playAnim3:Stop()
  401. Prepare2Play:Play()
  402. end end
  403. end)
  404. mouse.KeyDown:connect(function(key)
  405. if key == "q" then
  406. if reloading==true then
  407. if standed==false then
  408. standed=true
  409. Prepare2Play:Stop()
  410. equip2:Play()
  411. wait()
  412. playAnim:Play()
  413. Tool.GripForward=Vector3.new(0.485, 0.14, -0.863); --0.485, 0.14, -0.863
  414. elseif standed==true then
  415. standed=false
  416. playAnim:Stop()
  417. wait()
  418. Prepare2Play:Play()
  419. equip:Play()
  420. Tool.GripForward=Vector3.new(-0.501, 0.137, -0.855);
  421. end end end
  422. end)
  423. stfu=false
  424. function equipped()
  425. wait()
  426. stfu=true
  427. wait()
  428. playAnim:Play()
  429. equip:Play()
  430. reloading=true
  431. end
  432.  
  433. function unequipped()
  434. wait()
  435. playAnim:Stop()
  436. reloading=false
  437. Prepare2Play:Stop()
  438. stfu=false
  439. end
  440.  
  441. Tool.Equipped:connect(equipped)
  442. Tool.Unequipped:connect(unequipped)
  443.  
  444.  
  445. --STFU
  446. stfuu=Instance.new('Sound', char.Torso)
  447. stfuu.Volume=3
  448. stfuu.Pitch=6.8
  449. stfuu.SoundId='rbxassetid://261303790'
  450. mouse.KeyDown:connect(function(key)
  451. if key == "z" then
  452. if stfu==true then
  453. stfuu:Play()
  454. game:GetService("Chat"):Chat(char.Head, "SHUT THE FUCK UP U CUNT", Enum.ChatColor.Red)
  455. wait(2)
  456. end end
  457. end)
  458.  
  459.  
  460. ---
  461.  
  462. --Masked
  463. local player = game.Players.LocalPlayer
  464. repeat wait() until player.Character.Humanoid
  465. local humanoid = player.Character.Humanoid
  466. local mouse = player:GetMouse()
  467. equipsound = Instance.new('Sound', player.Character.Torso)
  468. equipsound.Volume=3
  469. equipsound.SoundId='rbxassetid://153647514'
  470.  
  471. local anim5 = Instance.new("Animation", player.Character)
  472. anim5.AnimationId = "http://www.roblox.com/asset/?id=28492456"
  473. local playAnim10 = humanoid:LoadAnimation(anim5)
  474. plyr = player
  475. --p = game:GetService("InsertService"):LoadAsset(304085055)
  476. --p.Name='IsMasked'
  477. --p.Parent = game.Workspace
  478. ismasked=false
  479. maskhat=Instance.new('Hat', game.Workspace)
  480. maskhat.Name='IsMasked'
  481. maskhat.AttachmentForward=Vector3.new(0, 0, 0.1);
  482. maskhat.AttachmentPos=Vector3.new(0, 0.8, -0.05);
  483. maskhat.AttachmentRight=Vector3.new(1, 0, 0);
  484. maskhat.AttachmentUp=Vector3.new(0, 1, 0);
  485. maskhandle=Instance.new('Part', maskhat)
  486. maskhandle.Name='Handle';
  487. maskhandle.Anchored=false
  488. maskhandle.Size=Vector3.new(1.33, 1, 1.7)
  489. maskmeshh=Instance.new('SpecialMesh', maskhandle)
  490. maskmeshh.MeshType='FileMesh'
  491. maskmeshh.MeshId='http://www.roblox.com/asset/?id=304084512'
  492. maskmeshh.TextureId='http://www.roblox.com/asset/?id=304083165'
  493. wait(0.001)
  494. game.Workspace.IsMasked.Parent = plyr.Character
  495.  
  496. maskhandle.Transparency=1
  497. mouse.KeyDown:connect(function(key)
  498. if key == "f" then
  499. if ismasked==false then
  500. ismasked=true
  501. Handle.Transparency=1
  502. playAnim10:Play()
  503. wait(0.5)
  504. playAnim10:Stop()
  505. equipsound:Play()
  506. Handle.Transparency=0
  507. player.Character.Humanoid.DisplayDistanceType='None'
  508. maskhandle.Transparency=0
  509.  
  510. elseif ismasked==true then
  511. ismasked=false
  512. Handle.Transparency=1
  513. playAnim10:Play()
  514. wait(0.5)
  515. playAnim10:Stop()
  516. equipsound:Play()
  517. player.Character.Humanoid.DisplayDistanceType='Viewer'
  518. maskhandle.Transparency=1
  519. Handle.Transparency=0
  520. end
  521. end
  522.  
  523. end)
  524.  
  525.  
  526. --Masking
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement