UnknownUser25

FE Red Zone Error

Nov 29th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.30 KB | None | 0 0
  1. --literally just a edit of noot noot
  2. ---ITS FR oh wait ITS FE!
  3. --https://github.com/Mokiros/roblox-FE-compatibility
  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,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  54. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  55. end
  56. for _,t in pairs(CAS.Actions) do
  57. for _,k in pairs(t.Keys) do
  58. if k==io.KeyCode then
  59. t.Function(t.Name,io.UserInputState,io)
  60. end
  61. end
  62. end
  63. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  64. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  65. end
  66. end)
  67. Event.Parent = NLS([==[
  68. local Player = game:GetService("Players").LocalPlayer
  69. local Event = script:WaitForChild("UserInput_Event")
  70.  
  71. local Mouse = Player:GetMouse()
  72. local UIS = game:GetService("UserInputService")
  73. local input = function(io,a)
  74. if a then return end
  75. --Since InputObject is a client-side instance, we create and pass table instead
  76. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  77. end
  78. UIS.InputBegan:Connect(input)
  79. UIS.InputEnded:Connect(input)
  80.  
  81. local h,t
  82. --Give the server mouse data 30 times every second, but only if the values changed
  83. --If player is not moving their mouse, client won't fire events
  84. while wait(1/30) do
  85. if h~=Mouse.Hit or t~=Mouse.Target then
  86. h,t=Mouse.Hit,Mouse.Target
  87. Event:FireServer({isMouse=true,Target=t,Hit=h})
  88. end
  89. end]==],Player.Character)
  90.  
  91. ----Sandboxed game object that allows the usage of client-side methods and services
  92. --Real game object
  93. local _rg = game
  94.  
  95. --Metatable for fake service
  96. local fsmt = {
  97. __index = function(self,k)
  98. local s = rawget(self,"_RealService")
  99. if s then
  100. return typeof(s[k])=="function"
  101. and function(_,...)return s[k](s,...)end or s[k]
  102. end
  103. end,
  104. __newindex = function(self,k,v)
  105. local s = rawget(self,"_RealService")
  106. if s then s[k]=v end
  107. end
  108. }
  109. local function FakeService(t,RealService)
  110. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  111. return setmetatable(t,fsmt)
  112. end
  113.  
  114. --Fake game object
  115. local g = {
  116. GetService = function(self,s)
  117. return rawget(self,s) or _rg:GetService(s)
  118. end,
  119. Players = FakeService({
  120. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  121. },"Players"),
  122. UserInputService = FakeService(UIS,"UserInputService"),
  123. ContextActionService = FakeService(CAS,"ContextActionService"),
  124. RunService = FakeService({
  125. _btrs = {},
  126. RenderStepped = _rg:GetService("RunService").Heartbeat,
  127. BindToRenderStep = function(self,name,_,fun)
  128. self._btrs[name] = self.Heartbeat:Connect(fun)
  129. end,
  130. UnbindFromRenderStep = function(self,name)
  131. self._btrs[name]:Disconnect()
  132. end,
  133. },"RunService")
  134. }
  135. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  136. g.service = g.GetService
  137. FakeService(g,game)
  138. --Changing owner to fake player object to support owner:GetMouse()
  139. game,owner = g,g.Players.LocalPlayer
  140. end
  141. --loadstring(game:GetObjects("rbxassetid://382365669")[1].Source)()
  142.  
  143. local msg = Instance.new("Message",workspace)
  144. msg.Text = "Created By SageOfMumsV2 (Pingu) And Xeradius (AzuLX). - Noot Noot Script"
  145. wait(2)
  146. msg:Destroy()
  147. pingudecal = "http://www.roblox.com/asset/?id=1556316854"
  148. local didpingu = false
  149. local ScreenGui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  150. ScreenGui.Name = "nooties"
  151. local asd = Instance.new("TextButton",ScreenGui)
  152. asd.BackgroundColor3 = Color3.new(0,0,0)
  153. asd.BorderColor3 = Color3.new(0,0,0)
  154. asd.Name = "nooties"
  155. asd.Position = UDim2.new(1,-150,1,-90)
  156. asd.Size = UDim2.new(0,150,0,45)
  157. asd.Font = "SourceSansBold"
  158. asd.FontSize = "Size32"
  159. asd.Text = "Noot Noot!"
  160. asd.TextColor3 = Color3.new(255,255,255)
  161. asd.MouseButton1Down:connect(function()
  162. if didpingu == false then
  163. didpingu = true
  164. for i,v in pairs(game.Players:GetChildren()) do
  165. if v:IsA("Player") then
  166. local nooties = Instance.new("Sound",workspace)
  167. nooties.SoundId = "http://www.roblox.com/asset/?id=607462393"
  168. nooties.Volume = 1
  169. nooties.Looped = true
  170. nooties:Play()
  171. end
  172. end
  173. local Sky = Instance.new("Sky",game.Lighting)
  174. Sky.SkyboxBk = pingudecal
  175. Sky.SkyboxDn = pingudecal
  176. Sky.SkyboxFt = pingudecal
  177. Sky.SkyboxLf = pingudecal
  178. Sky.SkyboxRt = pingudecal
  179. Sky.SkyboxUp = pingudecal
  180. local function modelasd()
  181. for i,v in pairs(workspace:GetChildren()) do
  182. if v:IsA("Model") then
  183. for i,a in pairs(v:GetChildren()) do
  184. local top = Instance.new("Decal",a)
  185. top.Face = "Top"
  186. top.Texture = pingudecal
  187. local btm = Instance.new("Decal",a)
  188. btm.Face = "Bottom"
  189. btm.Texture = pingudecal
  190. local lft = Instance.new("Decal",a)
  191. lft.Face = "Left"
  192. lft.Texture = pingudecal
  193. local rft = Instance.new("Decal",a)
  194. rft.Face = "Right"
  195. rft.Texture = pingudecal
  196. local frnt = Instance.new("Decal",a)
  197. frnt.Face = "Front"
  198. frnt.Texture = pingudecal
  199. local bk = Instance.new("Decal",a)
  200. bk.Face = "Back"
  201. bk.Texture = pingudecal
  202. local VTest = Instance.new("ParticleEmitter")
  203. VTest.Parent = a
  204. VTest.Texture = pingudecal
  205. VTest.Speed = NumberRange.new(200)
  206. VTest.Rate = 200
  207. VTest.Size = NumberSequence.new(10000,10000)
  208. VTest.Lifetime = NumberRange.new(1000)
  209. local pepe = coroutine.create(function()
  210. while wait() do
  211. local Explosion = Instance.new("Explosion",a)
  212. Explosion.BlastRadius = 10000
  213. end
  214. end)
  215. coroutine.resume(pepe)
  216. end
  217. end
  218. end
  219. end
  220. local function partasd()
  221. for i,a in pairs(workspace:GetChildren()) do
  222. local top = Instance.new("Decal",a)
  223. top.Face = "Top"
  224. top.Texture = pingudecal
  225. local btm = Instance.new("Decal",a)
  226. btm.Face = "Bottom"
  227. btm.Texture = pingudecal
  228. local lft = Instance.new("Decal",a)
  229. lft.Face = "Left"
  230. lft.Texture = pingudecal
  231. local rft = Instance.new("Decal",a)
  232. rft.Face = "Right"
  233. rft.Texture = pingudecal
  234. local frnt = Instance.new("Decal",a)
  235. frnt.Face = "Front"
  236. frnt.Texture = pingudecal
  237. local bk = Instance.new("Decal",a)
  238. bk.Face = "Back"
  239. bk.Texture = pingudecal
  240. local VTest = Instance.new("ParticleEmitter")
  241. VTest.Parent = a
  242. VTest.Texture = pingudecal
  243. VTest.Speed = NumberRange.new(200)
  244. VTest.Rate = 200
  245. VTest.Lifetime = NumberRange.new(1000)
  246. VTest.Size = NumberSequence.new(10000,10000)
  247. local pepe = coroutine.create(function()
  248. while wait() do
  249. if a.Name ~= "Head" or "Torso" or "Left Arm" or "Right Arm" or "Left Leg" or "Right Leg" then
  250. local Explosion = Instance.new("Explosion",a)
  251. Explosion.BlastRadius = 10000
  252. end
  253. end
  254. end)
  255. coroutine.resume(pepe)
  256. end
  257. end
  258. partasd()
  259. modelasd()
  260. else
  261. warn("Already Ran! Did not execute the script!")
  262. end
  263. end)
Add Comment
Please, Sign In to add comment