Im attempting to make a system where admins or people get a specific avatar thats different from 3 other randomly chosen avatars. My test is to see if it works by printing something if it finds my username, but it never prints the text. Here is my code
local Players = game:GetService("Players")
while wait(0.5) do
if Players.Name == ("Xenaside") then
print("IT WORKS")
else
local CharRound = math.random(1,3)
if CharRound == 1 then
game.StarterPlayer:FindFirstChild("StarterCharacter"):Destroy()
game.StarterPlayer.Characters.One.StarterCharacter:Clone().Parent = game.StarterPlayer
print("One Select")
elseif CharRound == 2 then
game.StarterPlayer:FindFirstChild("StarterCharacter"):Destroy()
game.StarterPlayer.Characters.Two.StarterCharacter:Clone().Parent = game.StarterPlayer
print("Two Select")
elseif CharRound == 3 then
game.StarterPlayer:FindFirstChild("StarterCharacter"):Destroy()
game.StarterPlayer.Characters.Three.StarterCharacter:Clone().Parent = game.StarterPlayer
print("Three Select")
end
end
end
Anyone know whatâs going on? All answers appreciated.