lafur

Untitled

Oct 7th, 2018
107
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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --Converted with ttyyuu12345's model to script plugin v4
  6. function sandbox(var,func)
  7.     local env = getfenv(func)
  8.     local newenv = setmetatable({},{
  9.         __index = function(self,k)
  10.             if k=="script" then
  11.                 return var
  12.             else
  13.                 return env[k]
  14.             end
  15.         end,
  16.     })
  17.     setfenv(func,newenv)
  18.     return func
  19. end
  20. cors = {}
  21. mas = Instance.new("Model",game:GetService("Lighting"))
  22. Model0 = Instance.new("Model")
  23. Part1 = Instance.new("Part")
  24. Decal2 = Instance.new("Decal")
  25. Part3 = Instance.new("Part")
  26. Decal4 = Instance.new("Decal")
  27. Part5 = Instance.new("Part")
  28. Decal6 = Instance.new("Decal")
  29. Part7 = Instance.new("Part")
  30. Part8 = Instance.new("Part")
  31. Part9 = Instance.new("Part")
  32. Part10 = Instance.new("Part")
  33. Part11 = Instance.new("Part")
  34. Part12 = Instance.new("Part")
  35. Part13 = Instance.new("Part")
  36. Decal14 = Instance.new("Decal")
  37. Part15 = Instance.new("Part")
  38. Decal16 = Instance.new("Decal")
  39. Part17 = Instance.new("Part")
  40. Decal18 = Instance.new("Decal")
  41. Part19 = Instance.new("Part")
  42. Model0.Parent = mas
  43. Part1.Parent = Model0
  44. Part1.CFrame = CFrame.new(-2.21999884, 0.930004001, -2.03500175, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  45. Part1.Orientation = Vector3.new(0, 90, 0)
  46. Part1.Position = Vector3.new(-2.21999884, 0.930004001, -2.03500175)
  47. Part1.Rotation = Vector3.new(0, 90, 0)
  48. Part1.Size = Vector3.new(32.1799965, 1, 29.3699932)
  49. Part1.Anchored = true
  50. Part1.BottomSurface = Enum.SurfaceType.Smooth
  51. Part1.TopSurface = Enum.SurfaceType.Smooth
  52. Decal2.Parent = Part1
  53. Decal2.Texture = "http://www.roblox.com/asset/?id=52525169"
  54. Decal2.Face = Enum.NormalId.Top
  55. Part3.Parent = Model0
  56. Part3.CFrame = CFrame.new(-22.6299992, 15.0950022, -13.6421499, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  57. Part3.Orientation = Vector3.new(0, -90, 0)
  58. Part3.Position = Vector3.new(-22.6299992, 15.0950022, -13.6421499)
  59. Part3.Rotation = Vector3.new(0, -90, 0)
  60. Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  61. Part3.Size = Vector3.new(17.760004, 30.1899967, 2)
  62. Part3.Anchored = true
  63. Part3.BottomSurface = Enum.SurfaceType.Smooth
  64. Part3.BrickColor = BrickColor.new("Really black")
  65. Part3.TopSurface = Enum.SurfaceType.Smooth
  66. Part3.brickColor = BrickColor.new("Really black")
  67. Decal4.Parent = Part3
  68. Decal4.Texture = "http://www.roblox.com/asset/?id=23596902"
  69. Part5.Parent = Model0
  70. Part5.CFrame = CFrame.new(20.4823818, 15.0950022, -1.81431866, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  71. Part5.Orientation = Vector3.new(0, 90, 0)
  72. Part5.Position = Vector3.new(20.4823818, 15.0950022, -1.81431866)
  73. Part5.Rotation = Vector3.new(0, 90, 0)
  74. Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  75. Part5.Size = Vector3.new(43.9899979, 30.1899967, 2)
  76. Part5.Anchored = true
  77. Part5.BottomSurface = Enum.SurfaceType.Smooth
  78. Part5.BrickColor = BrickColor.new("Really black")
  79. Part5.TopSurface = Enum.SurfaceType.Smooth
  80. Part5.brickColor = BrickColor.new("Really black")
  81. Decal6.Parent = Part5
  82. Decal6.Texture = "http://www.roblox.com/asset/?id=23596902"
  83. Part7.Parent = Model0
  84. Part7.CFrame = CFrame.new(-22.6299992, 21.6350002, -0.82714653, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  85. Part7.Orientation = Vector3.new(0, -90, 0)
  86. Part7.Position = Vector3.new(-22.6299992, 21.6350002, -0.82714653)
  87. Part7.Rotation = Vector3.new(0, -90, 0)
  88. Part7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  89. Part7.Size = Vector3.new(8.31000137, 17.1099987, 2)
  90. Part7.Anchored = true
  91. Part7.BottomSurface = Enum.SurfaceType.Smooth
  92. Part7.BrickColor = BrickColor.new("Really black")
  93. Part7.TopSurface = Enum.SurfaceType.Smooth
  94. Part7.brickColor = BrickColor.new("Really black")
  95. Part8.Parent = Model0
  96. Part8.CFrame = CFrame.new(-16.8301792, 2.91000438, -1.85999203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  97. Part8.Position = Vector3.new(-16.8301792, 2.91000438, -1.85999203)
  98. Part8.Color = Color3.new(1, 0, 0)
  99. Part8.Size = Vector3.new(0.390000015, 4.96000099, 32.7000008)
  100. Part8.Anchored = true
  101. Part8.BottomSurface = Enum.SurfaceType.Smooth
  102. Part8.BrickColor = BrickColor.new("Really red")
  103. Part8.Material = Enum.Material.Fabric
  104. Part8.TopSurface = Enum.SurfaceType.Smooth
  105. Part8.brickColor = BrickColor.new("Really red")
  106. Part9.Parent = Model0
  107. Part9.CFrame = CFrame.new(-1.84999466, 29.8649998, -1.05714798, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  108. Part9.Orientation = Vector3.new(0, -90, 0)
  109. Part9.Position = Vector3.new(-1.84999466, 29.8649998, -1.05714798)
  110. Part9.Rotation = Vector3.new(0, -90, 0)
  111. Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  112. Part9.Size = Vector3.new(42.75, 0.649999082, 43.560009)
  113. Part9.Anchored = true
  114. Part9.BottomSurface = Enum.SurfaceType.Smooth
  115. Part9.BrickColor = BrickColor.new("Really black")
  116. Part9.TopSurface = Enum.SurfaceType.Smooth
  117. Part9.brickColor = BrickColor.new("Really black")
  118. Part10.Parent = Model0
  119. Part10.CFrame = CFrame.new(12.6150036, 2.91000438, -2.00000238, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  120. Part10.Position = Vector3.new(12.6150036, 2.91000438, -2.00000238)
  121. Part10.Color = Color3.new(1, 0, 0)
  122. Part10.Size = Vector3.new(0.390000015, 4.96000099, 32.4199944)
  123. Part10.Anchored = true
  124. Part10.BottomSurface = Enum.SurfaceType.Smooth
  125. Part10.BrickColor = BrickColor.new("Really red")
  126. Part10.Material = Enum.Material.Fabric
  127. Part10.TopSurface = Enum.SurfaceType.Smooth
  128. Part10.brickColor = BrickColor.new("Really red")
  129. Part11.Parent = Model0
  130. Part11.CFrame = CFrame.new(-2.24000025, 2.91000438, 14.265976, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  131. Part11.Position = Vector3.new(-2.24000025, 2.91000438, 14.265976)
  132. Part11.Color = Color3.new(1, 0, 0)
  133. Part11.Size = Vector3.new(30.1000042, 4.96000099, 0.660000086)
  134. Part11.Anchored = true
  135. Part11.BottomSurface = Enum.SurfaceType.Smooth
  136. Part11.BrickColor = BrickColor.new("Really red")
  137. Part11.Material = Enum.Material.Fabric
  138. Part11.TopSurface = Enum.SurfaceType.Smooth
  139. Part11.brickColor = BrickColor.new("Really red")
  140. Part12.Parent = Model0
  141. Part12.CFrame = CFrame.new(-2.24000025, 2.91000438, -17.8799992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  142. Part12.Position = Vector3.new(-2.24000025, 2.91000438, -17.8799992)
  143. Part12.Color = Color3.new(1, 0, 0)
  144. Part12.Size = Vector3.new(30.1000042, 4.96000099, 0.660000086)
  145. Part12.Anchored = true
  146. Part12.BottomSurface = Enum.SurfaceType.Smooth
  147. Part12.BrickColor = BrickColor.new("Really red")
  148. Part12.Material = Enum.Material.Fabric
  149. Part12.TopSurface = Enum.SurfaceType.Smooth
  150. Part12.brickColor = BrickColor.new("Really red")
  151. Part13.Parent = Model0
  152. Part13.CFrame = CFrame.new(-22.6299992, 15.0950022, 12.1599979, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  153. Part13.Orientation = Vector3.new(0, -90, 0)
  154. Part13.Position = Vector3.new(-22.6299992, 15.0950022, 12.1599979)
  155. Part13.Rotation = Vector3.new(0, -90, 0)
  156. Part13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  157. Part13.Size = Vector3.new(17.760004, 30.1899967, 2)
  158. Part13.Anchored = true
  159. Part13.BottomSurface = Enum.SurfaceType.Smooth
  160. Part13.BrickColor = BrickColor.new("Really black")
  161. Part13.TopSurface = Enum.SurfaceType.Smooth
  162. Part13.brickColor = BrickColor.new("Really black")
  163. Decal14.Parent = Part13
  164. Decal14.Texture = "http://www.roblox.com/asset/?id=23596902"
  165. Part15.Parent = Model0
  166. Part15.CFrame = CFrame.new(-0.512616992, 15.0950022, -22.8093185, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  167. Part15.Orientation = Vector3.new(0, 180, 0)
  168. Part15.Position = Vector3.new(-0.512616992, 15.0950022, -22.8093185)
  169. Part15.Rotation = Vector3.new(-180, 0, -180)
  170. Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  171. Part15.Size = Vector3.new(43.9899979, 30.1899967, 2)
  172. Part15.Anchored = true
  173. Part15.BottomSurface = Enum.SurfaceType.Smooth
  174. Part15.BrickColor = BrickColor.new("Really black")
  175. Part15.TopSurface = Enum.SurfaceType.Smooth
  176. Part15.brickColor = BrickColor.new("Really black")
  177. Decal16.Parent = Part15
  178. Decal16.Texture = "http://www.roblox.com/asset/?id=23596902"
  179. Part17.Parent = Model0
  180. Part17.CFrame = CFrame.new(-1.63499999, 15.0950022, 20.0400009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  181. Part17.Position = Vector3.new(-1.63499999, 15.0950022, 20.0400009)
  182. Part17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  183. Part17.Size = Vector3.new(43.9899979, 30.1899967, 2)
  184. Part17.Anchored = true
  185. Part17.BottomSurface = Enum.SurfaceType.Smooth
  186. Part17.BrickColor = BrickColor.new("Really black")
  187. Part17.TopSurface = Enum.SurfaceType.Smooth
  188. Part17.brickColor = BrickColor.new("Really black")
  189. Decal18.Parent = Part17
  190. Decal18.Texture = "http://www.roblox.com/asset/?id=23596902"
  191. Part19.Parent = Model0
  192. Part19.CFrame = CFrame.new(-1.72500801, 0.215000018, -1.10997391, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  193. Part19.Position = Vector3.new(-1.72500801, 0.215000018, -1.10997391)
  194. Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  195. Part19.Size = Vector3.new(43.6099854, 0.430000037, 42.1400032)
  196. Part19.Anchored = true
  197. Part19.BottomSurface = Enum.SurfaceType.Smooth
  198. Part19.BrickColor = BrickColor.new("Really black")
  199. Part19.TopSurface = Enum.SurfaceType.Smooth
  200. Part19.brickColor = BrickColor.new("Really black")
  201. for i,v in pairs(mas:GetChildren()) do
  202.     v.Parent = workspace
  203.     pcall(function() v:MakeJoints() end)
  204. end
  205. mas:Destroy()
  206. for i,v in pairs(cors) do
  207.     spawn(function()
  208.         pcall(v)
  209.     end)
  210. end
Add Comment
Please, Sign In to add comment