SOLVED BY raid6n !
https://www.youtube.com/watch?v=ArVwBroFHQQ&feature=youtu.be
they all say player 1 through 35 but there is no error, i have only tried this only with me in studio.
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local GiveDie = LocalPlayer.PlayerGui:WaitForChild("GiveDie")
local playergivedie = 1
local nPlayers = 0
coroutine.wrap(
function()
while wait() do
if nPlayers ~= #Players:GetPlayers() then
nPlayers = #Players:GetPlayers()
for i, v in pairs(Players:GetPlayers()) do
if GiveDie:FindFirstChild("player0" .. playergivedie) then
playergivedie = playergivedie + 1
GiveDie:FindFirstChild("player0" .. playergivedie).Text = v.Name
else
GiveDie:FindFirstChild("player" .. playergivedie).Text = v.Name
playergivedie = playergivedie + 1
end
end
end
end
end
)()
This LocalScript is insde StarterPlayerScripts and is supposed to change 35 buttons to a random player name (show all of them in the server) but it wont do that, well, i have only tested it with just me inside the game but i think it should still do something.
Jak#5349 on discord
