Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --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"))
- Part0 = Instance.new("Part")
- SurfaceGui1 = Instance.new("SurfaceGui")
- Frame2 = Instance.new("Frame")
- TextButton3 = Instance.new("TextButton")
- Script4 = Instance.new("Script")
- Part0.Parent = mas
- Part0.Anchored = true
- Part0.Size = Vector3.new(5.2200017, 4.6500001, 2)
- Part0.CFrame = CFrame.new(-6.43000793, 2.32500005, -10.3299866, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Position = Vector3.new(-6.43000793, 2.32500005, -10.3299866)
- SurfaceGui1.Parent = Part0
- Frame2.Parent = SurfaceGui1
- Frame2.Size = UDim2.new(0, 799, 999, 999)
- Frame2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton3.Parent = Frame2
- TextButton3.Size = UDim2.new(0, 799, 0, 60)
- TextButton3.Text = "Hello"
- TextButton3.BackgroundColor3 = Color3.new(0.666667, 1, 0)
- TextButton3.Font = Enum.Font.SourceSans
- TextButton3.FontSize = Enum.FontSize.Size14
- TextButton3.TextScaled = true
- TextButton3.TextWrapped = true
- Script4.Parent = TextButton3
- table.insert(cors,sandbox(Script4,function()
- if game.Workspace.FilteringEnabled == true then
- script.Parent.Text = "FE Is Enabled"
- else
- script.Parent.Text = "FE Is Disabled"
- end
- end))
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement