Advertisement
Parallaxox

Multi-Player Pick LS

Apr 8th, 2025 (edited)
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.14 KB | None | 0 0
  1. //https://youtu.be/rvva4TSGunI
  2. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  3. local Players = game:GetService("Players")
  4.  
  5. local player = Players.LocalPlayer
  6. local playerGui = player:WaitForChild("PlayerGui")
  7.  
  8. local screenGui = Instance.new("ScreenGui")
  9. screenGui.Name = "PickerGui"
  10. screenGui.Parent = playerGui
  11.  
  12. local textLabel = Instance.new("TextLabel")
  13. textLabel.Size = UDim2.new(0.5, 0, 0.1, 0)
  14. textLabel.Position = UDim2.new(0.25, 0, 0.05, 0)
  15. textLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  16. textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  17. textLabel.Font = Enum.Font.SourceSansBold
  18. textLabel.TextScaled = true
  19. textLabel.Text = "Waiting for selection..."
  20. textLabel.Parent = screenGui
  21.  
  22. local multiPickPlayersValue = ReplicatedStorage:FindFirstChild("MultiPickPlayers")
  23.  
  24. local function updateGui()
  25.     local displayText = "Waiting for selection..."
  26.     if multiPickPlayersValue and multiPickPlayersValue.Value ~= "Waiting for selection..." then
  27.         displayText = multiPickPlayersValue.Value
  28.     end
  29.     textLabel.Text = displayText
  30. end
  31.  
  32. if multiPickPlayersValue then
  33.     multiPickPlayersValue.Changed:Connect(updateGui)
  34. end
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement