Advertisement
memberhero

FE Checking Part

Dec 21st, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Part0 = Instance.new("Part")
  20. SurfaceGui1 = Instance.new("SurfaceGui")
  21. Frame2 = Instance.new("Frame")
  22. TextButton3 = Instance.new("TextButton")
  23. Script4 = Instance.new("Script")
  24. Part0.Parent = mas
  25. Part0.Anchored = true
  26. Part0.Size = Vector3.new(5.2200017, 4.6500001, 2)
  27. Part0.CFrame = CFrame.new(-6.43000793, 2.32500005, -10.3299866, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  28. Part0.BottomSurface = Enum.SurfaceType.Smooth
  29. Part0.TopSurface = Enum.SurfaceType.Smooth
  30. Part0.Position = Vector3.new(-6.43000793, 2.32500005, -10.3299866)
  31. SurfaceGui1.Parent = Part0
  32. Frame2.Parent = SurfaceGui1
  33. Frame2.Size = UDim2.new(0, 799, 999, 999)
  34. Frame2.BackgroundColor3 = Color3.new(1, 1, 1)
  35. TextButton3.Parent = Frame2
  36. TextButton3.Size = UDim2.new(0, 799, 0, 60)
  37. TextButton3.Text = "Hello"
  38. TextButton3.BackgroundColor3 = Color3.new(0.666667, 1, 0)
  39. TextButton3.Font = Enum.Font.SourceSans
  40. TextButton3.FontSize = Enum.FontSize.Size14
  41. TextButton3.TextScaled = true
  42. TextButton3.TextWrapped = true
  43. Script4.Parent = TextButton3
  44. table.insert(cors,sandbox(Script4,function()
  45. if game.Workspace.FilteringEnabled == true then
  46. script.Parent.Text = "FE Is Enabled"
  47. else
  48. script.Parent.Text = "FE Is Disabled"
  49. end
  50.  
  51. end))
  52. for i,v in pairs(mas:GetChildren()) do
  53. v.Parent = workspace
  54. pcall(function() v:MakeJoints() end)
  55. end
  56. mas:Destroy()
  57. for i,v in pairs(cors) do
  58. spawn(function()
  59. pcall(v)
  60. end)
  61. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement