Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local Holder = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local TitleDrop = Instance.new("TextLabel")
- local ScrollingFrame = Instance.new("ScrollingFrame")
- local Title2 = Instance.new("TextLabel")
- local Title2Drop = Instance.new("TextLabel")
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- Holder.Name = "Holder"
- Holder.Parent = ScreenGui
- Holder.Active = true
- Holder.AnchorPoint = Vector2.new(0, 0.5)
- Holder.BackgroundColor3 = Color3.new(0.298039, 0.298039, 0.298039)
- Holder.BorderSizePixel = 0
- Holder.Draggable = true
- Holder.Position = UDim2.new(0, 25, 0.5, 0)
- Holder.Size = UDim2.new(0, 150, 0, 290)
- Title.Name = "Title"
- Title.Parent = Holder
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BackgroundTransparency = 1
- Title.Size = UDim2.new(0, 150, 0, 10)
- Title.ZIndex = 2
- Title.Font = Enum.Font.SourceSansBold
- Title.FontSize = Enum.FontSize.Size14
- Title.Text = "ROCITIZEN ITEM"
- Title.TextColor3 = Color3.new(.1, 1, 1)
- Title.TextSize = 14
- Title.TextYAlignment = Enum.TextYAlignment.Top
- ScrollingFrame.Parent = Holder
- ScrollingFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- ScrollingFrame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- ScrollingFrame.BorderSizePixel = 0
- ScrollingFrame.Position = UDim2.new(0.5, 0, 0, 155)
- ScrollingFrame.Size = UDim2.new(0, 140, 0, 250)
- ScrollingFrame.BottomImage = "rbxassetid://985424344"
- ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- ScrollingFrame.MidImage = "rbxassetid://985424344"
- ScrollingFrame.ScrollBarThickness = 3
- ScrollingFrame.TopImage = "rbxassetid://985424344"
- Title2.Name = "Title2"
- Title2.Parent = Holder
- Title2.BackgroundColor3 = Color3.new(1, 1, 1)
- Title2.BackgroundTransparency = 1
- Title2.Position = UDim2.new(0, 0, 0, 10)
- Title2.Size = UDim2.new(0, 150, 0, 10)
- Title2.ZIndex = 2
- Title2.Font = Enum.Font.SourceSansBold
- Title2.FontSize = Enum.FontSize.Size14
- Title2.Text = "PLACE CHANGE GUI"
- Title2.TextColor3 = Color3.new(.1, 1, 1)
- Title2.TextSize = 14
- Title2.TextYAlignment = Enum.TextYAlignment.Top
- --main script--
- local frameitems = {
- }
- local gg = game.ReplicatedStorage.Furniture:GetChildren()
- for i = 1,#gg do
- table.insert(frameitems,gg[i].Name)
- end
- local frame = ScrollingFrame
- for i=1, #frameitems do
- local B = Instance.new("TextButton")
- local V = Instance.new("StringValue", B)
- V.Value = string.sub(frameitems[i], 7)
- B.Name = "B"
- B.Parent = frame
- B.BackgroundColor3 = Color3.new(0.282353, 0.282353, 0.282353)
- B.BorderSizePixel = 0
- B.Position = UDim2.new(0, 3, 0, (((i-1)*22)+(3*i)))
- B.Size = UDim2.new(0, 134, 0, 22)
- B.Font = Enum.Font.SourceSansBold
- B.FontSize = Enum.FontSize.Size14
- B.Text = frameitems[i]
- B.TextColor3 = Color3.new(.1, .5, .5)
- B.TextScaled = true
- B.TextSize = 20
- frame.CanvasSize = UDim2.new(0,0,0,(#frameitems*22+(i*3)+3))
- B.MouseButton1Down:connect(function()
- print(B.Text)
- game.Players.LocalPlayer.PlayerGui.MouseScript.FurniturePlacing.Value = game.ReplicatedStorage.Furniture:FindFirstChild(B.Text)
- end)
- end
Add Comment
Please, Sign In to add comment