#script i made to change the team of whole server not working

1 messages · Page 1 of 1 (latest)

karmic forge
#

i tried to filterarraybyclass to get every player in the server then change their teamcolor but it didnt work

uneven elm
#

v.TeamColor checks for a player's team color, but doesn't actually change it, so you're essentially just asking "is every player's color "Electric blue". Try using v.TeamColor = BrickColor.new("Electric blue")

karmic forge
#

so for changing teamcolor u gotta kinda treat it like an instance

#

ok

#

thamks ima try this

#

uhhh

glacial socketBOT
#

studio** You are now Level 9! **studio

karmic forge
#

i got a different error thats completely unrelated to the thing

#

its weird

#

ill send an ss

#

idk whats wrong with that part

#

its a pretty normal filterarray ting

#

thing*

#

maybe it wants that to be the number of players

#

but idk how to get that because the number of players fluctuates depending on server size and if new people join

uneven elm
#

Are you getting a playerlist? I see you've only defined the Player service which (iirc) doesn't generate a list of players

#

Try adding local playerList = game:GetService("Players"):GetPlayers() and adjusting your loops

karmic forge
#

pppph

#

oooh

#

ok lemme try that

#

ok that works

#

thamk u