NekoDarkini

Rocitizen Items

Oct 25th, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Holder = Instance.new("Frame")
  3. local Title = Instance.new("TextLabel")
  4. local TitleDrop = Instance.new("TextLabel")
  5. local ScrollingFrame = Instance.new("ScrollingFrame")
  6. local Title2 = Instance.new("TextLabel")
  7. local Title2Drop = Instance.new("TextLabel")
  8. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  9. Holder.Name = "Holder"
  10. Holder.Parent = ScreenGui
  11. Holder.Active = true
  12. Holder.AnchorPoint = Vector2.new(0, 0.5)
  13. Holder.BackgroundColor3 = Color3.new(0.298039, 0.298039, 0.298039)
  14. Holder.BorderSizePixel = 0
  15. Holder.Draggable = true
  16. Holder.Position = UDim2.new(0, 25, 0.5, 0)
  17. Holder.Size = UDim2.new(0, 150, 0, 290)
  18. Title.Name = "Title"
  19. Title.Parent = Holder
  20. Title.BackgroundColor3 = Color3.new(1, 1, 1)
  21. Title.BackgroundTransparency = 1
  22. Title.Size = UDim2.new(0, 150, 0, 10)
  23. Title.ZIndex = 2
  24. Title.Font = Enum.Font.SourceSansBold
  25. Title.FontSize = Enum.FontSize.Size14
  26. Title.Text = "ROCITIZEN ITEM"
  27. Title.TextColor3 = Color3.new(.1, 1, 1)
  28. Title.TextSize = 14
  29. Title.TextYAlignment = Enum.TextYAlignment.Top
  30. ScrollingFrame.Parent = Holder
  31. ScrollingFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  32. ScrollingFrame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  33. ScrollingFrame.BorderSizePixel = 0
  34. ScrollingFrame.Position = UDim2.new(0.5, 0, 0, 155)
  35. ScrollingFrame.Size = UDim2.new(0, 140, 0, 250)
  36. ScrollingFrame.BottomImage = "rbxassetid://985424344"
  37. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  38. ScrollingFrame.MidImage = "rbxassetid://985424344"
  39. ScrollingFrame.ScrollBarThickness = 3
  40. ScrollingFrame.TopImage = "rbxassetid://985424344"
  41. Title2.Name = "Title2"
  42. Title2.Parent = Holder
  43. Title2.BackgroundColor3 = Color3.new(1, 1, 1)
  44. Title2.BackgroundTransparency = 1
  45. Title2.Position = UDim2.new(0, 0, 0, 10)
  46. Title2.Size = UDim2.new(0, 150, 0, 10)
  47. Title2.ZIndex = 2
  48. Title2.Font = Enum.Font.SourceSansBold
  49. Title2.FontSize = Enum.FontSize.Size14
  50. Title2.Text = "PLACE CHANGE GUI"
  51. Title2.TextColor3 = Color3.new(.1, 1, 1)
  52. Title2.TextSize = 14
  53. Title2.TextYAlignment = Enum.TextYAlignment.Top
  54.  
  55. --main script--
  56.  
  57. local frameitems = {
  58. }
  59.  
  60. local gg = game.ReplicatedStorage.Furniture:GetChildren()
  61. for i = 1,#gg do
  62. table.insert(frameitems,gg[i].Name)
  63.  
  64. end
  65.  
  66. local frame = ScrollingFrame
  67. for i=1, #frameitems do
  68. local B = Instance.new("TextButton")
  69. local V = Instance.new("StringValue", B)
  70. V.Value = string.sub(frameitems[i], 7)
  71. B.Name = "B"
  72. B.Parent = frame
  73. B.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
  74. B.BorderSizePixel = 0
  75. B.Position = UDim2.new(0, 3, 0, (((i-1)*22)+(3*i)))
  76. B.Size = UDim2.new(0, 134, 0, 22)
  77. B.Font = Enum.Font.SourceSansBold
  78. B.FontSize = Enum.FontSize.Size14
  79. B.Text = frameitems[i]
  80. B.TextColor3 = Color3.new(.1, .5, .5)
  81. B.TextScaled = true
  82. B.TextSize = 20
  83. frame.CanvasSize = UDim2.new(0,0,0,(#frameitems*22+(i*3)+3))
  84. B.MouseButton1Down:connect(function()
  85. print(B.Text)
  86. game.Players.LocalPlayer.PlayerGui.MouseScript.FurniturePlacing.Value = game.ReplicatedStorage.Furniture:FindFirstChild(B.Text)
  87. end)
  88. end
Add Comment
Please, Sign In to add comment