Advertisement
MrFoofty

UnAnchor GUI

Jan 17th, 2018
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. ---MrFoofty: If some parts modeled isnt anchored it has a unanchor script so ill make a remove for that
  2. ---if there is a bug send me a message
  3. local UnAnchoGUI = Instance.new("ScreenGui")
  4. local GUI = Instance.new("Frame")
  5. local NotAnchor = Instance.new("TextButton")
  6. local Anchor = Instance.new("TextButton")
  7. local Title = Instance.new("TextLabel")
  8. UnAnchoGUI.Name = "UnAncho GUI"
  9. UnAnchoGUI.Parent = game.CoreGui
  10.  
  11. GUI.Name = "GUI"
  12. GUI.Parent = UnAnchoGUI
  13. GUI.BackgroundColor3 = Color3.new(0, 0, 0)
  14. GUI.BackgroundTransparency = 0.40000000596046
  15. GUI.BorderSizePixel = 0
  16. GUI.Position = UDim2.new(0, 0, 0.37931034, 0)
  17. GUI.Size = UDim2.new(0, 217, 0, 230)
  18.  
  19. NotAnchor.Name = "NotAnchor"
  20. NotAnchor.Parent = GUI
  21. NotAnchor.BackgroundColor3 = Color3.new(0.235294, 0.137255, 1)
  22. NotAnchor.Position = UDim2.new(0, 0, 0.313043445, 0)
  23. NotAnchor.Size = UDim2.new(0, 104, 0, 50)
  24. NotAnchor.Font = Enum.Font.SourceSansLight
  25. NotAnchor.Text = "UnAnchor All"
  26. NotAnchor.TextColor3 = Color3.new(0, 0.0117647, 0.207843)
  27. NotAnchor.TextScaled = true
  28. NotAnchor.TextSize = 14
  29. NotAnchor.TextWrapped = true
  30.  
  31. Anchor.Name = "Anchor"
  32. Anchor.Parent = GUI
  33. Anchor.BackgroundColor3 = Color3.new(0.235294, 0.137255, 1)
  34. Anchor.Position = UDim2.new(0.52073735, 0, 0.313043445, 0)
  35. Anchor.Size = UDim2.new(0, 104, 0, 50)
  36. Anchor.Font = Enum.Font.SourceSansLight
  37. Anchor.Text = "Anchor all"
  38. Anchor.TextColor3 = Color3.new(0, 0.0117647, 0.207843)
  39. Anchor.TextScaled = true
  40. Anchor.TextSize = 14
  41. Anchor.TextWrapped = true
  42.  
  43. Title.Name = "Title"
  44. Title.Parent = GUI
  45. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  46. Title.BackgroundTransparency = 1
  47. Title.Position = UDim2.new(0.0391705073, 0, 0, 0)
  48. Title.Size = UDim2.new(0, 200, 0, 50)
  49. Title.Font = Enum.Font.ArialBold
  50. Title.Text = "UnAnchor GUI"
  51. Title.TextColor3 = Color3.new(0.0235294, 0.0588235, 0.207843)
  52. Title.TextScaled = true
  53. Title.TextSize = 14
  54. Title.TextWrapped = true
  55.  
  56. Anchor.MouseButton1Click:connect(function()
  57. mytable = game.Workspace:GetChildren()
  58. for i, v in pairs(mytable) do
  59. if v.ClassName == 'Part' then
  60. v.Anchored = true
  61. end
  62. end
  63. end)
  64.  
  65. NotAnchor.MouseButton1Click:connect(function()
  66. mytable = game.Workspace:GetChildren()
  67. for i, v in pairs(mytable) do
  68. if v.ClassName == 'Part' then
  69. v.Anchored = false
  70. end
  71. end
  72.  
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement