Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://youtu.be/rvva4TSGunI
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Players = game:GetService("Players")
- local player = Players.LocalPlayer
- local playerGui = player:WaitForChild("PlayerGui")
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "PickerGui"
- screenGui.Parent = playerGui
- local textLabel = Instance.new("TextLabel")
- textLabel.Size = UDim2.new(0.5, 0, 0.1, 0)
- textLabel.Position = UDim2.new(0.25, 0, 0.05, 0)
- textLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- textLabel.Font = Enum.Font.SourceSansBold
- textLabel.TextScaled = true
- textLabel.Text = "Waiting for selection..."
- textLabel.Parent = screenGui
- local multiPickPlayersValue = ReplicatedStorage:FindFirstChild("MultiPickPlayers")
- local function updateGui()
- local displayText = "Waiting for selection..."
- if multiPickPlayersValue and multiPickPlayersValue.Value ~= "Waiting for selection..." then
- displayText = multiPickPlayersValue.Value
- end
- textLabel.Text = displayText
- end
- if multiPickPlayersValue then
- multiPickPlayersValue.Changed:Connect(updateGui)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement