AlphaSploit

Skybox Setter GUI

Jan 17th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. --joseph2235
  2. gui = Instance.new("ScreenGui",game.CoreGui)
  3. gui.Name = "SkyboxSetter"
  4. gui.ResetOnSpawn = false
  5.  
  6. box = Instance.new("Frame",gui)
  7. box.Name = "Box"
  8. box.Size = UDim2.new(0,300,0,200)
  9. box.Position = UDim2.new(0,650,0,300)
  10. box.BackgroundColor3 = Color3.new(255,255,255)
  11. box.BackgroundTransparency = .65
  12. box.BorderSizePixel = 0
  13. box.Active = true
  14. box.Draggable = true
  15.  
  16. clse = Instance.new("TextButton",box)
  17. clse.Name = "CloseButton"
  18. clse.Size = UDim2.new(0,25,0,25)
  19. clse.Position = UDim2.new(0,275,0,0)
  20. clse.BackgroundColor3 = Color3.new(255,0,0)
  21. clse.BackgroundTransparency = .7
  22. clse.BorderSizePixel = 0
  23. clse.Font = "SourceSansLight"
  24. clse.FontSize = "Size18"
  25. clse.Text = "X"
  26. clse.TextColor3 = Color3.new(0,0,0)
  27.  
  28. top = Instance.new("TextLabel",box)
  29. top.Name = "TopBar"
  30. top.Size = UDim2.new(0,275,0,25)
  31. top.BackgroundColor3 = Color3.new(255,255,255)
  32. top.BackgroundTransparency = .45
  33. top.BorderSizePixel = 0
  34. top.Font = "SourceSans"
  35. top.FontSize = "Size14"
  36. top.Text = "Skybox Setter"
  37. top.TextColor3 = Color3.new(0,0,0)
  38.  
  39. tbox = Instance.new("TextBox",box)
  40. tbox.Name = "IdBox"
  41. tbox.Size = UDim2.new(0,300,0,100)
  42. tbox.Position = UDim2.new(0,0,0,25)
  43. tbox.BackgroundColor3 = Color3.new(255,255,255)
  44. tbox.BackgroundTransparency = .65
  45. tbox.BorderSizePixel = 0
  46. tbox.ClearTextOnFocus = false
  47. tbox.Font = "SourceSansLight"
  48. tbox.FontSize = "Size42"
  49. tbox.Text = "Asset-Id"
  50. tbox.TextColor3 = Color3.new(0,0,0)
  51.  
  52. sbtn = Instance.new("TextButton",box)
  53. sbtn.Name = "SetButton"
  54. sbtn.Size = UDim2.new(0,300,0,75)
  55. sbtn.Position = UDim2.new(0,0,0,125)
  56. sbtn.BackgroundColor3 = Color3.new(255,255,255)
  57. sbtn.BackgroundTransparency = .65
  58. sbtn.BorderSizePixel = 0
  59. sbtn.Font = "SourceSansLight"
  60. sbtn.FontSize = "Size36"
  61. sbtn.Text = "Set"
  62. sbtn.TextColor3 = Color3.new(0,0,0)
  63.  
  64. clse.MouseButton1Down:connect(function()
  65. gui:Remove()
  66. end)
  67.  
  68. sbtn.MouseButton1Down:connect(function()
  69. for o,p in pairs(game.Lighting:GetChildren()) do
  70. if p.ClassName == "Sky" then
  71. p:Remove()
  72. end
  73. end
  74.  
  75. local a=Instance.new("Sky",game.Lighting)
  76. local b={"Bk","Dn","Ft","Lf","Rt","Up"}
  77. for i,v in pairs(b) do
  78. a["Skybox"..v]="rbxassetid://"..tbox.Text
  79. end
  80. end)
Add Comment
Please, Sign In to add comment