Advertisement
Guest User

Untitled

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