Advertisement
PixelDerpIsUber2

Untitled

May 11th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.22 KB | None | 0 0
  1. --School Shooter script by DMS ok bye
  2. --https://github.com/Mokiros/roblox-FE-compatibility
  3. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  4. local Player,game,owner = owner,game
  5. local RealPlayer = Player
  6. 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
  7. o1 = Instance.new("Model")
  8. o1.Name = "Vest"
  9. o2 = Instance.new("Part")
  10. o2.Name = "Middle"
  11. o2.Parent = o1
  12. o2.BrickColor = BrickColor.new("Brick yellow")
  13. o2.Transparency = 1
  14. o2.Position = Vector3.new(0.139906004, 1.05800402, -11.1099901)
  15. o2.Anchored = true
  16. o2.CFrame = CFrame.new(0.139906004, 1.05800402, -11.1099901, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  17. o2.CanCollide = false
  18. o2.FormFactor = Enum.FormFactor.Symmetric
  19. o2.Size = Vector3.new(2, 2, 1)
  20. o2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  21. o2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  22. o2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  23. o2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  24. o2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  25. o2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  26. o2.Color = Color3.new(0.843137, 0.772549, 0.603922)
  27. o3 = Instance.new("Part")
  28. o3.Name = "Pack"
  29. o3.Parent = o1
  30. o3.BrickColor = BrickColor.new("Dark stone grey")
  31. o3.Position = Vector3.new(0.139907002, 1.07000601, -10.3049936)
  32. o3.Rotation = Vector3.new(-180, 0, -180)
  33. o3.Anchored = true
  34. o3.CFrame = CFrame.new(0.139907002, 1.07000601, -10.3049936, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  35. o3.CanCollide = false
  36. o3.FormFactor = Enum.FormFactor.Custom
  37. o3.Size = Vector3.new(1.65999985, 1.80000019, 0.630000472)
  38. o3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  39. o3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  40. o3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  41. o3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  42. o3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  43. o3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  44. o3.Color = Color3.new(0.388235, 0.372549, 0.384314)
  45. o4 = Instance.new("Part")
  46. o4.Name = "Strap"
  47. o4.Parent = o1
  48. o4.BrickColor = BrickColor.new("Black")
  49. o4.Position = Vector3.new(0.66991502, 1.05500698, -11.1149797)
  50. o4.Anchored = true
  51. o4.CFrame = CFrame.new(0.66991502, 1.05500698, -11.1149797, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  52. o4.CanCollide = false
  53. o4.FormFactor = Enum.FormFactor.Custom
  54. o4.Size = Vector3.new(0.259999752, 2.11000037, 1.15000045)
  55. o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  56. o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  57. o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  58. o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  59. o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  60. o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  61. o4.Color = Color3.new(0.105882, 0.164706, 0.207843)
  62. o5 = Instance.new("Part")
  63. o5.Name = "Flap"
  64. o5.Parent = o1
  65. o5.BrickColor = BrickColor.new("Black")
  66. o5.Position = Vector3.new(0.139905006, 1.85000098, -10.2900219)
  67. o5.Anchored = true
  68. o5.CFrame = CFrame.new(0.139905006, 1.85000098, -10.2900219, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  69. o5.CanCollide = false
  70. o5.FormFactor = Enum.FormFactor.Custom
  71. o5.Size = Vector3.new(1.71999979, 0.400000006, 0.639999866)
  72. o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  73. o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  74. o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  75. o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  76. o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  77. o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  78. o5.Color = Color3.new(0.105882, 0.164706, 0.207843)
  79. o6 = Instance.new("Part")
  80. o6.Name = "Pocket"
  81. o6.Parent = o1
  82. o6.BrickColor = BrickColor.new("Black")
  83. o6.Position = Vector3.new(0.149883002, 0.860005975, -10.0399857)
  84. o6.Rotation = Vector3.new(-0, 0, -90)
  85. o6.Anchored = true
  86. o6.CFrame = CFrame.new(0.149883002, 0.860005975, -10.0399857, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  87. o6.CanCollide = false
  88. o6.FormFactor = Enum.FormFactor.Custom
  89. o6.Size = Vector3.new(0.600000024, 0.800000131, 0.200000003)
  90. o6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  91. o6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  92. o6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  93. o6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  94. o6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  95. o6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  96. o6.Color = Color3.new(0.105882, 0.164706, 0.207843)
  97. o7 = Instance.new("Part")
  98. o7.Name = "Pocket"
  99. o7.Parent = o1
  100. o7.BrickColor = BrickColor.new("Black")
  101. o7.Position = Vector3.new(0.139600992, 1.10000801, -10.3099718)
  102. o7.Rotation = Vector3.new(-90, 90, 0)
  103. o7.Anchored = true
  104. o7.CFrame = CFrame.new(0.139600992, 1.10000801, -10.3099718, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  105. o7.CanCollide = false
  106. o7.FormFactor = Enum.FormFactor.Custom
  107. o7.Size = Vector3.new(0.600000024, 0.400000155, 1.70000005)
  108. o7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  109. o7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  110. o7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  111. o7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  112. o7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  113. o7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  114. o7.Color = Color3.new(0.105882, 0.164706, 0.207843)
  115. o8 = Instance.new("Part")
  116. o8.Name = "Strap"
  117. o8.Parent = o1
  118. o8.BrickColor = BrickColor.new("Black")
  119. o8.Position = Vector3.new(-0.37014699, 1.05500698, -11.1149921)
  120. o8.Anchored = true
  121. o8.CFrame = CFrame.new(-0.37014699, 1.05500698, -11.1149921, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  122. o8.CanCollide = false
  123. o8.FormFactor = Enum.FormFactor.Custom
  124. o8.Size = Vector3.new(0.259999752, 2.11000037, 1.15000045)
  125. o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  126. o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  127. o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  128. o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  129. o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  130. o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  131. o8.Color = Color3.new(0.105882, 0.164706, 0.207843)
  132. o9 = Instance.new("Part")
  133. o9.Parent = o1
  134. o9.BrickColor = BrickColor.new("Really black")
  135. o9.Reflectance = 0.10000000149012
  136. o9.Position = Vector3.new(0.173590899, 4.00173569, -9.98207664)
  137. o9.Rotation = Vector3.new(2.9181666e-009, -3.48279983e-008, -8.55249798e-019)
  138. o9.Anchored = true
  139. o9.CFrame = CFrame.new(0.173590899, 4.00173569, -9.98207664, 0.999998331, 1.49269007e-020, -6.07863204e-010, 1.49269007e-020, 1, -5.09317831e-011, -6.07863204e-010, -5.09317831e-011, 1.00000334)
  140. o9.FormFactor = Enum.FormFactor.Plate
  141. o9.Size = Vector3.new(2, 4.80000019, 2)
  142. o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  143. o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  144. o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  145. o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  146. o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  147. o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  148. o9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  149. o10 = Instance.new("SpecialMesh")
  150. o10.Parent = o9
  151. o10.Scale = Vector3.new(0.600000024, 1, 0.600000024)
  152. o10.MeshType = Enum.MeshType.Brick
  153. o11 = Instance.new("Part")
  154. o11.Parent = o1
  155. o11.BrickColor = BrickColor.new("Mid gray")
  156. o11.Reflectance = 0.20000000298023
  157. o11.Position = Vector3.new(0.173592806, 4.10173273, -11.1821489)
  158. o11.Rotation = Vector3.new(-180, 89.8953247, -90)
  159. o11.Anchored = true
  160. o11.CFrame = CFrame.new(0.173592806, 4.10173273, -11.1821489, -1.49269007e-020, 6.07863204e-010, 0.999998331, -1, 5.09317831e-011, 1.49269007e-020, 5.09317831e-011, -1.00000334, -6.07863204e-010)
  161. o11.FormFactor = Enum.FormFactor.Plate
  162. o11.Size = Vector3.new(1, 0.400000006, 2)
  163. o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  164. o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  165. o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  166. o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  167. o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  168. o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  169. o11.Color = Color3.new(0.803922, 0.803922, 0.803922)
  170. o12 = Instance.new("CylinderMesh")
  171. o12.Parent = o11
  172. o12.Offset = Vector3.new(0, -0.600000024, 0)
  173. o12.Scale = Vector3.new(0.5, 0.100000001, 0.5)
  174. o13 = Instance.new("Part")
  175. o13.Parent = o1
  176. o13.BrickColor = BrickColor.new("Mid gray")
  177. o13.Reflectance = 0.20000000298023
  178. o13.Position = Vector3.new(0.173592806, 5.60169125, -11.1821489)
  179. o13.Rotation = Vector3.new(1.40697509e-009, -89.8953247, -90)
  180. o13.Anchored = true
  181. o13.CFrame = CFrame.new(0.173592806, 5.60169125, -11.1821489, 1.49269007e-020, 6.07863204e-010, -0.999998331, 1, 5.09317831e-011, -1.49269007e-020, -5.09317831e-011, -1.00000334, 6.07863204e-010)
  182. o13.FormFactor = Enum.FormFactor.Plate
  183. o13.Size = Vector3.new(2, 0.400000006, 2)
  184. o13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  185. o13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  186. o13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  187. o13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  188. o13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  189. o13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  190. o13.Color = Color3.new(0.803922, 0.803922, 0.803922)
  191. o14 = Instance.new("CylinderMesh")
  192. o14.Parent = o13
  193. o14.Offset = Vector3.new(0, -0.600000024, 0)
  194. o14.Scale = Vector3.new(0.5, 0.100000001, 0.5)
  195. o15 = Instance.new("Part")
  196. o15.Parent = o1
  197. o15.BrickColor = BrickColor.new("Mid gray")
  198. o15.Reflectance = 0.20000000298023
  199. o15.Position = Vector3.new(0.173592806, 2.60173273, -11.1821489)
  200. o15.Rotation = Vector3.new(-180, 89.8953247, -90)
  201. o15.Anchored = true
  202. o15.CFrame = CFrame.new(0.173592806, 2.60173273, -11.1821489, -1.49269007e-020, 6.07863204e-010, 0.999998331, -1, 5.09317831e-011, 1.49269007e-020, 5.09317831e-011, -1.00000334, -6.07863204e-010)
  203. o15.FormFactor = Enum.FormFactor.Plate
  204. o15.Size = Vector3.new(2, 0.400000006, 2)
  205. o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  206. o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  207. o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  208. o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  209. o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  210. o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  211. o15.Color = Color3.new(0.803922, 0.803922, 0.803922)
  212. o16 = Instance.new("CylinderMesh")
  213. o16.Parent = o15
  214. o16.Offset = Vector3.new(0, -0.600000024, 0)
  215. o16.Scale = Vector3.new(0.5, 0.100000001, 0.5)
  216. myears = Instance.new('Sound')
  217. myears.Parent = game.Players.LocalPlayer.Character.Head
  218. myears.Looped = true
  219. myears.Name = "Ruski"
  220. myears.Playing = true
  221. myears.SoundId = "rbxassetid://341851020"
  222. myears.Volume = .5
  223. myears.TimePosition = 0
  224. local g = o1:clone()
  225. g.Parent = game.Players.LocalPlayer.Character
  226. local C = g:GetChildren()
  227. for i=1, #C do
  228. if C[i].className == "Part" then
  229. local W = Instance.new("Weld")
  230. W.Part0 = g.Middle
  231. W.Part1 = C[i]
  232. local CJ = CFrame.new(g.Middle.Position)
  233. local C0 = g.Middle.CFrame:inverse()*CJ
  234. local C1 = C[i].CFrame:inverse()*CJ
  235. W.C0 = C0
  236. W.C1 = C1
  237. W.Parent = g.Middle
  238. end
  239. local Y = Instance.new("Weld")
  240. Y.Part0 = game.Players.LocalPlayer.Character.Torso
  241. Y.Part1 = g.Middle
  242. Y.C0 = CFrame.new(0, 0, 0)
  243. Y.Parent = Y.Part0
  244. end
  245.  
  246. local h = g:GetChildren()
  247. for i = 1, # h do
  248. h[i].Anchored = false
  249. h[i].CanCollide = false
  250. end
  251.  
  252. debounce = 0;
  253.  
  254. local player = game.Players.LocalPlayer
  255. repeat wait() until player.Character.Humanoid
  256. local humanoid = player.Character.Humanoid
  257. local mouse = player:GetMouse()
  258. --game.Players.LocalPlayer.Character.Shirt.ShirtTemplate='rbxassetid://473465498'
  259.  
  260.  
  261. local player=game.Players.LocalPlayer;
  262. local char=game.Players.LocalPlayer.Character;
  263. local humanoid = player.Character.Humanoid;
  264. Tool=Instance.new('Tool', game.Players.LocalPlayer.Backpack);
  265. Tool.GripRight=Vector3.new(0.865, 0.105, -0.49);
  266. Tool.GripUp=Vector3.new(-0.023, 0.985, 0.171);
  267. Tool.GripPos=Vector3.new(0.064, -0.3, 0.9);
  268. Tool.GripForward=Vector3.new(0.485, 0.14, -0.863); --0.485, 0.14, -0.863
  269. Tool.Name='Tec 9';
  270. Handle=Instance.new('Part', Tool);
  271. Handle.Name = 'Handle';
  272. Handle.BrickColor=BrickColor.new('Really black')
  273. Handle.Size=Vector3.new(0.26, 1.11, 4.85);
  274. Handle.Position=Vector3.new(-5.112, 1.837, -3.734)
  275. gunfire=Instance.new('Part', Tool)
  276. gunfire.Name='GunFire'
  277. gunfire.Size=Vector3.new(0.2, 0.2, 0.2)
  278. gunfire.Transparency=1
  279. gunfire.Position=Vector3.new(-5.142, 2.582, -5.059)
  280. gunfirefx=Instance.new('BillboardGui', gunfire)
  281. gunfirefx.Enabled=false
  282. gunfirefx.Adornee = gunfire
  283. gunfirefx.Size=UDim2.new(1.1, 0, 1.1, 0)
  284. gunfirefx2=Instance.new('ImageLabel', gunfirefx)
  285. gunfirefx2.Image='http://www.roblox.com/asset/?id=117472237'
  286. gunfirefx2.BackgroundTransparency=1
  287. gunfirefx2.Size=UDim2.new(1.2, 0, 1.2, 0)
  288.  
  289.  
  290. c4mesh=Instance.new('SpecialMesh', Handle);
  291. c4mesh.MeshType = 'FileMesh';
  292. c4mesh.MeshId='http://www.roblox.com/asset/?id=430355386';
  293. c4mesh.TextureId='http://www.roblox.com/asset/?id=430355390';
  294. c4mesh.Scale=Vector3.new(0.075, 0.075, 0.075);
  295. light=Instance.new('PointLight', Handle);
  296. light.Color = Color3.new(255, 255, 0)
  297. light.Range=10;
  298. light.Enabled=false;
  299.  
  300. --Weld Connector
  301. local prev
  302. local parts = Tool:GetChildren()
  303. for i = 1,#parts do
  304. if (parts[i].className == "Part") then
  305. if (prev ~= nil)then
  306. local weld = Instance.new("Weld")
  307. weld.Part0 = prev
  308. weld.Part1 = parts[i]
  309. weld.C0 = prev.CFrame:inverse()
  310. weld.C1 = parts[i].CFrame:inverse()
  311. weld.Parent = prev
  312. end
  313. prev = parts[i]
  314. end
  315. end
  316. --end
  317. local Prepare=Instance.new("Animation", player.Character);
  318. Prepare.AnimationId="http://www.roblox.com/asset?id=168086975";
  319. local playAnim = humanoid:LoadAnimation(Prepare)
  320.  
  321. local Prepare3=Instance.new("Animation", player.Character);
  322. Prepare3.AnimationId="http://www.roblox.com/asset?id=95383474";
  323. local Prepare2Play = humanoid:LoadAnimation(Prepare3)
  324.  
  325. local Prepare2=Instance.new("Animation", player.Character);
  326. Prepare2.AnimationId="http://www.roblox.com/asset?id=95383474";
  327. local playAnim6 = humanoid:LoadAnimation(Prepare)
  328. standed=true
  329. local shoot=Instance.new("Animation", player.Character);
  330. shoot.AnimationId="http://www.roblox.com/Asset?ID=94332152";
  331. local playAnim2 = humanoid:LoadAnimation(shoot)
  332. local reload=Instance.new("Animation", player.Character);
  333. reload.AnimationId="http://www.roblox.com/Asset?ID=95390631";
  334. local playAnim3 = humanoid:LoadAnimation(reload)
  335. reloadsound=Instance.new('Sound', char.Torso)
  336. reloadsound.Volume=4
  337. reloadsound.SoundId='rbxassetid://266147528'
  338.  
  339. equip=Instance.new('Sound', char.Torso)
  340. equip.Volume=4
  341. equip.SoundId='rbxassetid://131045401'
  342.  
  343. equip2=Instance.new('Sound', char.Torso)
  344. equip2.Volume=4
  345. equip2.SoundId='rbxassetid://131045429'
  346. function equipped(mouse)
  347. function Shoot()
  348. if standed==false then
  349. if debounce == 0 then
  350. debounce = 1
  351. if mouse.Target ~= nil then
  352. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil and mouse.Target.Name ~= "Head" then
  353. mouse.Target.Parent.Humanoid:TakeDamage(75)
  354. hit=Instance.new('Sound', mouse.Target.Parent.Torso)
  355.  
  356. hit.Volume=7
  357. hit.SoundId='rbxassetid://159970596'
  358. hit:Play()
  359. elseif mouse.Target.Parent.Parent:findFirstChild("Humanoid") ~= nil then
  360. mouse.Target.Parent.Parent.Humanoid:TakeDamage(45)
  361.  
  362. hit=Instance.new('Sound', mouse.Target.Parent.Parent.Torso)
  363. hit.Volume=7
  364. hit.SoundId='rbxassetid://159970596'
  365. hit:Play()
  366. elseif mouse.Target.Name == "Part" then
  367. Hit = mouse.hit
  368. if Hit==nil then return end
  369. I = Instance.new("Part")
  370. I.Parent = game.Workspace
  371. I.CFrame = Hit
  372. I.Anchored=true
  373. I.Transparency=1
  374. I.Anchored=true
  375. I.CanCollide=false
  376. Pa=Instance.new('ParticleEmitter', I)
  377. Pa.Size = NumberSequence.new(0.2)
  378. Pa.Speed = NumberRange.new(40)
  379. Pa.Lifetime=NumberRange.new(0.4)
  380. Pa.RotSpeed = NumberRange.new(-255, 250)
  381. Pa.Texture = 'rbxassetid://316915922'
  382. Pa.LightEmission = 0
  383. Pa.EmissionDirection='Back'
  384. Pa.VelocitySpread = 250
  385. Pa.Rate = 500
  386. --
  387. Pa2=Instance.new('ParticleEmitter', I)
  388. Pa2.Size = NumberSequence.new(0.2)
  389. Pa2.Speed = NumberRange.new(40)
  390. Pa2.Lifetime=NumberRange.new(0.4)
  391. Pa2.RotSpeed = NumberRange.new(-255, 250)
  392. Pa2.Texture = 'rbxassetid://316915922'
  393. Pa2.LightEmission = 0
  394. Pa2.EmissionDirection='Back'
  395. Pa2.VelocitySpread = 250
  396. Pa2.Rate = 1000
  397. --
  398. Pa3=Instance.new('ParticleEmitter', I)
  399. Pa3.Size = NumberSequence.new(0.2)
  400. Pa3.Speed = NumberRange.new(40)
  401. Pa3.Lifetime=NumberRange.new(0.4)
  402. Pa3.RotSpeed = NumberRange.new(-255, 250)
  403. Pa3.Texture = 'rbxassetid://316915922'
  404. Pa3.LightEmission = 0
  405. Pa3.EmissionDirection='Back'
  406. Pa3.VelocitySpread = 250
  407. Pa3.Rate = 1000
  408.  
  409. --
  410. Pa4=Instance.new('ParticleEmitter', I)
  411. Pa4.Size = NumberSequence.new(0.4)
  412. Pa4.Speed = NumberRange.new(40)
  413. Pa4.Lifetime=NumberRange.new(0.4)
  414. Pa4.RotSpeed = NumberRange.new(-255, 250)
  415. Pa4.Texture = 'rbxassetid://316915922'
  416. Pa4.LightEmission = 0
  417. Pa4.EmissionDirection='Back'
  418. Pa4.VelocitySpread = 250
  419. Pa4.Rate = 1000
  420.  
  421. wait(0.1)
  422. Pa.Enabled=false
  423. Pa2.Enabled=false
  424. Pa3.Enabled=false
  425. Pa4.Enabled=false
  426.  
  427. hit=Instance.new('Sound', I)
  428. hit.Volume=5
  429. hit.SoundId='rbxassetid://159970596'
  430. hit:Play()
  431.  
  432. hit2=Instance.new('Sound', I)
  433. hit2.Volume=14
  434. hit2.SoundId='rbxassetid://516789356'
  435. hit2:Play()
  436. end
  437. end
  438.  
  439. playAnim2:Play()
  440. Prepare2Play:Stop()
  441. light.Enabled=true;
  442. gunfirefx.Enabled=true
  443. shootsound=Instance.new('Sound', char.Torso)
  444. shootsound.Volume=3
  445. shootsound.SoundId='rbxassetid://149355375'
  446. shootsound:Play()
  447. wait(0.01)
  448. light.Enabled=false;
  449. gunfirefx.Enabled=false
  450.  
  451. wait(0.001)
  452. Prepare2Play:Play()
  453. debounce = 0
  454. end
  455. end end
  456. mouse.Button1Down:connect(Shoot)
  457. end
  458.  
  459. Tool.Equipped:connect(equipped)
  460.  
  461. local player = game.Players.LocalPlayer
  462. repeat wait() until player.Character.Humanoid
  463. local humanoid = player.Character.Humanoid
  464. local mouse = player:GetMouse()
  465.  
  466. local reload=Instance.new("Animation", player.Character);
  467. reload.AnimationId="http://www.roblox.com/Asset?ID=95384819";
  468. local playAnim3 = humanoid:LoadAnimation(reload)
  469. reloading=false
  470. mouse.KeyDown:connect(function(key)
  471. if key == "r" then
  472. if reloading==true then
  473. playAnim3:Play()
  474. reloadsound:Play()
  475. wait(2)
  476. playAnim3:Stop()
  477. end end
  478. end)
  479. mouse.KeyDown:connect(function(key)
  480. if key == "q" then
  481. if reloading==true then
  482. if standed==false then
  483. standed=true
  484. Prepare2Play:Stop()
  485. equip2:Play()
  486. wait()
  487. playAnim:Play()
  488. Tool.GripForward=Vector3.new(0.485, 0.14, -0.863); --0.485, 0.14, -0.863
  489. elseif standed==true then
  490. standed=false
  491. playAnim:Stop()
  492. wait()
  493. Prepare2Play:Play()
  494. equip:Play()
  495. Tool.GripForward=Vector3.new(-0.501, 0.137, -0.855);
  496. end end end
  497. end)
  498. stfu=false
  499. function equipped()
  500. wait()
  501. stfu=true
  502. wait()
  503. playAnim:Play()
  504. equip:Play()
  505. reloading=true
  506. end
  507.  
  508. function unequipped()
  509. wait()
  510. playAnim:Stop()
  511. reloading=false
  512. Prepare2Play:Stop()
  513. stfu=false
  514. end
  515.  
  516. Tool.Equipped:connect(equipped)
  517. Tool.Unequipped:connect(unequipped)
  518.  
  519.  
  520. --STFU
  521. stfuu=Instance.new('Sound', char.Torso)
  522. stfuu.Volume=3
  523. stfuu.Pitch=6.8
  524. stfuu.SoundId='rbxassetid://261303790'
  525. mouse.KeyDown:connect(function(key)
  526. if key == "z" then
  527. if stfu==true then
  528. stfuu:Play()
  529. game:GetService("Chat"):Chat(char.Head, "SHUT THE FUCK UP U CUNT", Enum.ChatColor.Red)
  530. wait(2)
  531. end end
  532. end)
  533.  
  534.  
  535. ---
  536.  
  537. --Masked
  538. local player = game.Players.LocalPlayer
  539. repeat wait() until player.Character.Humanoid
  540. local humanoid = player.Character.Humanoid
  541. local mouse = player:GetMouse()
  542. equipsound = Instance.new('Sound', player.Character.Torso)
  543. equipsound.Volume=3
  544. equipsound.SoundId='rbxassetid://153647514'
  545.  
  546. local anim5 = Instance.new("Animation", player.Character)
  547. anim5.AnimationId = "http://www.roblox.com/asset/?id=28492456"
  548. local playAnim10 = humanoid:LoadAnimation(anim5)
  549. plyr = player
  550. --p = game:GetService("InsertService"):LoadAsset(304085055)
  551. --p.Name='IsMasked'
  552. --p.Parent = game.Workspace
  553. ismasked=false
  554. maskhat=Instance.new('Hat', game.Workspace)
  555. maskhat.Name='IsMasked'
  556. maskhat.AttachmentForward=Vector3.new(0, 0, 0.1);
  557. maskhat.AttachmentPos=Vector3.new(0, 0.8, -0.05);
  558. maskhat.AttachmentRight=Vector3.new(1, 0, 0);
  559. maskhat.AttachmentUp=Vector3.new(0, 1, 0);
  560. maskhandle=Instance.new('Part', maskhat)
  561. maskhandle.Name='Handle';
  562. maskhandle.Anchored=false
  563. maskhandle.Size=Vector3.new(1.33, 1, 1.7)
  564. maskmeshh=Instance.new('SpecialMesh', maskhandle)
  565. maskmeshh.MeshType='FileMesh'
  566. maskmeshh.MeshId='http://www.roblox.com/asset/?id=304084512'
  567. maskmeshh.TextureId='http://www.roblox.com/asset/?id=304083165'
  568. wait(0.001)
  569. game.Workspace.IsMasked.Parent = plyr.Character
  570.  
  571. maskhandle.Transparency=1
  572. mouse.KeyDown:connect(function(key)
  573. if key == "f" then
  574. if ismasked==false then
  575. ismasked=true
  576. Handle.Transparency=1
  577. playAnim10:Play()
  578. wait(0.5)
  579. playAnim10:Stop()
  580. equipsound:Play()
  581. Handle.Transparency=0
  582. player.Character.Humanoid.DisplayDistanceType='None'
  583. maskhandle.Transparency=0
  584.  
  585. elseif ismasked==true then
  586. ismasked=false
  587. Handle.Transparency=1
  588. playAnim10:Play()
  589. wait(0.5)
  590. playAnim10:Stop()
  591. equipsound:Play()
  592. player.Character.Humanoid.DisplayDistanceType='Viewer'
  593. maskhandle.Transparency=1
  594. Handle.Transparency=0
  595. end
  596. end
  597.  
  598. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement