Advertisement
Goo345

begone thot

Dec 15th, 2018
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.99 KB | None | 0 0
  1.  
  2. if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
  3. print("FE Compatibility: by WaverlyCole & Mokiros")
  4. InternalData = {}
  5. do
  6. script.Parent = owner.Character
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput"
  9. local function NewFakeEvent()
  10. local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
  11. return Fake
  12. end
  13. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  14. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  15. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  16. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  17. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  18. local function TriggerEvent(self,Event,...)
  19. local Trigger = Mouse[Event]
  20. if Trigger and Trigger.fakeEvent and Trigger.Function then
  21. Trigger.Function(...)
  22. end
  23. end
  24. Mouse.TrigEvent = TriggerEvent
  25. UserInputService.TrigEvent = TriggerEvent
  26. Event.OnServerEvent:Connect(function(FiredBy,Input)
  27. if FiredBy.Name ~= owner.Name then end
  28. if Input.MouseEvent then
  29. Mouse.Target = Input.Target
  30. Mouse.Hit = Input.Hit
  31. else
  32. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  33. if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  34. return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  35. end
  36. for _,Action in pairs(ContextActionService.Actions) do
  37. for _,Key in pairs(Action.Keys) do
  38. if Key==Input.KeyCode then
  39. Action.Function(Action.Name,Input.UserInputState,Input)
  40. end
  41. end
  42. end
  43. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  44. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  45. end
  46. end)
  47. InternalData["Mouse"] = Mouse
  48. InternalData["ContextActionService"] = ContextActionService
  49. InternalData["UserInputService"] = UserInputService
  50. Event.Parent = NLS([[
  51. local Player = owner
  52. local Event = script:WaitForChild("UserInput")
  53. local UserInputService = game:GetService("UserInputService")
  54. local Mouse = Player:GetMouse()
  55. local Input = function(Input,gameProcessedEvent)
  56. if gameProcessedEvent then return end
  57. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  58. end
  59. UserInputService.InputBegan:Connect(Input)
  60. UserInputService.InputEnded:Connect(Input)
  61. local Hit,Target
  62. while wait(1/30) do
  63. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  64. Hit,Targer = Mouse.Hit,Mouse.Target
  65. Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  66. end
  67. end
  68. ]],owner.Character)
  69. end
  70. RealGame = game;game = setmetatable({},{
  71. __index = function (self,Index)
  72. local Sandbox = function (Thing)
  73. if Thing:IsA("Player") then
  74. local RealPlayer = Thing
  75. return setmetatable({},{
  76. __index = function (self,Index)
  77. local Type = type(RealPlayer[Index])
  78. if Type == "function" then
  79. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  80. return function (self)
  81. return InternalData["Mouse"]
  82. end
  83. end
  84. return function (self,...)
  85. return RealPlayer[Index](RealPlayer,...)
  86. end
  87. else
  88. return RealPlayer[Index]
  89. end
  90. end;
  91. __tostring = function(self)
  92. return RealPlayer.Name
  93. end
  94. })
  95. end
  96. end
  97. if RealGame[Index] then
  98. local Type = type(RealGame[Index])
  99. if Type == "function" then
  100. if Index:lower() == "getservice" or Index:lower() == "service" then
  101. return function (self,Service)
  102. if Service:lower() == "players" then
  103. return setmetatable({},{
  104. __index = function (self2,Index2)
  105. local RealService = RealGame:GetService(Service)
  106. local Type2 = type(Index2)
  107. if Type2 == "function" then
  108. return function (self,...)
  109. return RealService[Index2](RealService,...)
  110. end
  111. else
  112. if Index2:lower() == "localplayer" then
  113. return Sandbox(owner)
  114. end
  115. return RealService[Index2]
  116. end
  117. end;
  118. __tostring = function(self)
  119. return RealGame:GetService(Service).Name
  120. end
  121. })
  122. elseif Service:lower() == "contextactionservice" then
  123. return InternalData["ContextActionService"]
  124. elseif Service:lower() == "contextactionservice" then
  125. return InternalData["UserInputService"]
  126. elseif Service:lower() == "runservice" then
  127. return setmetatable({},{
  128. __index = function(self2,Index2)
  129. local RealService = RealGame:GetService(Service)
  130. local Type2 = type(Index2)
  131. if Type2 == "function" then
  132. return function (self,...)
  133. return RealService[Index2](RealService,...)
  134. end
  135. else
  136. if Index2:lower() == "bindtorenderstep" then
  137. return function (self,Name,Priority,Function)
  138. return RealGame:GetService("RunService").Stepped:Connect(Function)
  139. end
  140. end
  141. if Index2:lower() == "renderstepped" then
  142. return RealService["Stepped"]
  143. end
  144. return RealService[Index2]
  145. end
  146. end
  147. })
  148. else
  149. return RealGame:GetService(Service)
  150. end
  151. end
  152. end
  153. return function (self,...)
  154. return RealGame[Index](RealGame,...)
  155. end
  156. else
  157. if game:GetService(Index) then
  158. return game:GetService(Index)
  159. end
  160. return RealGame[Index]
  161. end
  162. else
  163. return nil
  164. end
  165. end
  166. });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
  167. print("Complete! Running...")
  168.  
  169.  
  170. --//Paste script below this line.
  171.  
  172.  
  173. --Gun Model
  174. ee=Instance.new("Tool",game.Players.owner.Backpack)
  175. ee.Name='Heavy Pistol'
  176. ee.RequiresHandle = true
  177. ee.TextureId = 'rbxassetid://381243171'
  178. ee.GripForward = Vector3.new(-0.013, -0.012, 1)
  179. ee.GripPos = Vector3.new(-0.198, 0.031, -0.808)
  180. ee.GripRight = Vector3.new(0.026, 1, 0.012)
  181. ee.GripUp = Vector3.new(1, -0.026, 0.013)
  182. rr=Instance.new("Part",ee)
  183. rr.Name='Handle'
  184. rr.Size = Vector3.new(0.9,0.9,2.1)
  185. rr.BackSurface = 'Smooth'
  186. rr.BottomSurface = 'Smooth'
  187. rr.FrontSurface = 'Smooth'
  188. rr.LeftSurface = 'Smooth'
  189. rr.RightSurface = 'Smooth'
  190. rr.TopSurface = 'Smooth'
  191. rr.BrickColor = BrickColor.new('Black')
  192. zz=Instance.new("SpecialMesh",rr)
  193. zz.MeshId = 'rbxassetid://450219827'
  194. zz.TextureId = 'rbxassetid://450219831'
  195. zz.Scale = Vector3.new(0.7,0.7,0.7)
  196. --Gun Light
  197. ff=Instance.new("PointLight",rr)
  198. ff.Enabled = false
  199. ff.Brightness = 5
  200. ff.Range = 10
  201. --Gun Script
  202. local mouse = game.Players.owner
  203. local function lol()
  204. mouse.Target:BreakJoints()
  205. mouse.Target.Anchored = false
  206. mouse.Target.Locked = false
  207. end
  208. local function sound()
  209. local ze=Instance.new("Sound",rr)
  210. ze.SoundId = 'rbxassetid://1095911222'
  211. ze.Playing = true
  212. wait(4)
  213. ze:Destroy()
  214. end
  215. local function light()
  216. ff.Enabled = true
  217. wait(0.2)
  218. ff.Enabled = false
  219. end
  220. local function grip()
  221. ee.GripForward = Vector3.new(-0.249, -0.012, 0.968)
  222. ee.GripPos = Vector3.new(-0.338, 0.031, -0.876)
  223. ee.GripRight = Vector3.new(0.023, 1, 0.018)
  224. ee.GripUp = Vector3.new(0.968, -0.026, 0.249)
  225. wait(0.5)
  226. ee.GripForward = Vector3.new(-0.013, -0.012, 1)
  227. ee.GripPos = Vector3.new(-0.198, 0.031, -0.808)
  228. ee.GripRight = Vector3.new(0.026, 1, 0.012)
  229. ee.GripUp = Vector3.new(1, -0.026, 0.013)
  230. end
  231. ee.Activated:connect(grip)
  232. ee.Activated:connect(light)
  233. ee.Activated:connect(lol)
  234. ee.Activated:connect(sound)
  235.  
  236. --Made by 213455384113840128
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement