Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Decal2 = Instance.new("Decal")
- Part3 = Instance.new("Part")
- Decal4 = Instance.new("Decal")
- Part5 = Instance.new("Part")
- Decal6 = Instance.new("Decal")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- Part12 = Instance.new("Part")
- Part13 = Instance.new("Part")
- Decal14 = Instance.new("Decal")
- Part15 = Instance.new("Part")
- Decal16 = Instance.new("Decal")
- Part17 = Instance.new("Part")
- Decal18 = Instance.new("Decal")
- Part19 = Instance.new("Part")
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-2.21999884, 0.930004001, -2.03500175, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part1.Orientation = Vector3.new(0, 90, 0)
- Part1.Position = Vector3.new(-2.21999884, 0.930004001, -2.03500175)
- Part1.Rotation = Vector3.new(0, 90, 0)
- Part1.Size = Vector3.new(32.1799965, 1, 29.3699932)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Decal2.Parent = Part1
- Decal2.Texture = "http://www.roblox.com/asset/?id=52525169"
- Decal2.Face = Enum.NormalId.Top
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(-22.6299992, 15.0950022, -13.6421499, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part3.Orientation = Vector3.new(0, -90, 0)
- Part3.Position = Vector3.new(-22.6299992, 15.0950022, -13.6421499)
- Part3.Rotation = Vector3.new(0, -90, 0)
- Part3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part3.Size = Vector3.new(17.760004, 30.1899967, 2)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Really black")
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Really black")
- Decal4.Parent = Part3
- Decal4.Texture = "http://www.roblox.com/asset/?id=23596902"
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(20.4823818, 15.0950022, -1.81431866, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part5.Orientation = Vector3.new(0, 90, 0)
- Part5.Position = Vector3.new(20.4823818, 15.0950022, -1.81431866)
- Part5.Rotation = Vector3.new(0, 90, 0)
- Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part5.Size = Vector3.new(43.9899979, 30.1899967, 2)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Really black")
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Really black")
- Decal6.Parent = Part5
- Decal6.Texture = "http://www.roblox.com/asset/?id=23596902"
- Part7.Parent = Model0
- Part7.CFrame = CFrame.new(-22.6299992, 21.6350002, -0.82714653, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part7.Orientation = Vector3.new(0, -90, 0)
- Part7.Position = Vector3.new(-22.6299992, 21.6350002, -0.82714653)
- Part7.Rotation = Vector3.new(0, -90, 0)
- Part7.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part7.Size = Vector3.new(8.31000137, 17.1099987, 2)
- Part7.Anchored = true
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Really black")
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Really black")
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(-16.8301792, 2.91000438, -1.85999203, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(-16.8301792, 2.91000438, -1.85999203)
- Part8.Color = Color3.new(1, 0, 0)
- Part8.Size = Vector3.new(0.390000015, 4.96000099, 32.7000008)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Really red")
- Part8.Material = Enum.Material.Fabric
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Really red")
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(-1.84999466, 29.8649998, -1.05714798, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part9.Orientation = Vector3.new(0, -90, 0)
- Part9.Position = Vector3.new(-1.84999466, 29.8649998, -1.05714798)
- Part9.Rotation = Vector3.new(0, -90, 0)
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part9.Size = Vector3.new(42.75, 0.649999082, 43.560009)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Really black")
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Really black")
- Part10.Parent = Model0
- Part10.CFrame = CFrame.new(12.6150036, 2.91000438, -2.00000238, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.Position = Vector3.new(12.6150036, 2.91000438, -2.00000238)
- Part10.Color = Color3.new(1, 0, 0)
- Part10.Size = Vector3.new(0.390000015, 4.96000099, 32.4199944)
- Part10.Anchored = true
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Really red")
- Part10.Material = Enum.Material.Fabric
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Really red")
- Part11.Parent = Model0
- Part11.CFrame = CFrame.new(-2.24000025, 2.91000438, 14.265976, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part11.Position = Vector3.new(-2.24000025, 2.91000438, 14.265976)
- Part11.Color = Color3.new(1, 0, 0)
- Part11.Size = Vector3.new(30.1000042, 4.96000099, 0.660000086)
- Part11.Anchored = true
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Really red")
- Part11.Material = Enum.Material.Fabric
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Really red")
- Part12.Parent = Model0
- Part12.CFrame = CFrame.new(-2.24000025, 2.91000438, -17.8799992, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part12.Position = Vector3.new(-2.24000025, 2.91000438, -17.8799992)
- Part12.Color = Color3.new(1, 0, 0)
- Part12.Size = Vector3.new(30.1000042, 4.96000099, 0.660000086)
- Part12.Anchored = true
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Really red")
- Part12.Material = Enum.Material.Fabric
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Really red")
- Part13.Parent = Model0
- Part13.CFrame = CFrame.new(-22.6299992, 15.0950022, 12.1599979, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part13.Orientation = Vector3.new(0, -90, 0)
- Part13.Position = Vector3.new(-22.6299992, 15.0950022, 12.1599979)
- Part13.Rotation = Vector3.new(0, -90, 0)
- Part13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part13.Size = Vector3.new(17.760004, 30.1899967, 2)
- Part13.Anchored = true
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Really black")
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.brickColor = BrickColor.new("Really black")
- Decal14.Parent = Part13
- Decal14.Texture = "http://www.roblox.com/asset/?id=23596902"
- Part15.Parent = Model0
- Part15.CFrame = CFrame.new(-0.512616992, 15.0950022, -22.8093185, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part15.Orientation = Vector3.new(0, 180, 0)
- Part15.Position = Vector3.new(-0.512616992, 15.0950022, -22.8093185)
- Part15.Rotation = Vector3.new(-180, 0, -180)
- Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part15.Size = Vector3.new(43.9899979, 30.1899967, 2)
- Part15.Anchored = true
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.BrickColor = BrickColor.new("Really black")
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part15.brickColor = BrickColor.new("Really black")
- Decal16.Parent = Part15
- Decal16.Texture = "http://www.roblox.com/asset/?id=23596902"
- Part17.Parent = Model0
- Part17.CFrame = CFrame.new(-1.63499999, 15.0950022, 20.0400009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part17.Position = Vector3.new(-1.63499999, 15.0950022, 20.0400009)
- Part17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part17.Size = Vector3.new(43.9899979, 30.1899967, 2)
- Part17.Anchored = true
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.BrickColor = BrickColor.new("Really black")
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.brickColor = BrickColor.new("Really black")
- Decal18.Parent = Part17
- Decal18.Texture = "http://www.roblox.com/asset/?id=23596902"
- Part19.Parent = Model0
- Part19.CFrame = CFrame.new(-1.72500801, 0.215000018, -1.10997391, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part19.Position = Vector3.new(-1.72500801, 0.215000018, -1.10997391)
- Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part19.Size = Vector3.new(43.6099854, 0.430000037, 42.1400032)
- Part19.Anchored = true
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.BrickColor = BrickColor.new("Really black")
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.brickColor = BrickColor.new("Really black")
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment