Hello there, i want to make something where whenever a player joins it clones a button and when they leave it destroys it.
The thing is it clones my name but it doesnt, when i went into a test server with 2 players it only cloned player 1 not player 2 but i need it to clone everybody who joins.
I don’t quite understand what you mean by rolve’s ban system, I don’t think they’ll have that open for the public either? Can you possibly provide a screenshot?
Ahh, I’ve never seen that lol. But personally I would make this as a normal client feature, create all the client sided scripts for it, events etc. Then place it into ServerStorage, Whenever a player joins, you can then clone the entire UI into there PlayerGui(Assuming this is only for admins)
local Whitelist = {1,4013,31};
game:GetService("Players").PlayerAdded:Connect(function(Plr)
local Whitelisted = table.find(Whitelist, Plr.UserId);
if Whitelisted then
--<Clone the gui and give it to them
end;
end)
You can just set that up locally within the panel, pretty sure you can listen for player added events on the client, There’s really no need for the array though.