So I'm creating a game where there are Players and there are Staff, and I want it to be so that Players can only see General chat, but Staff can see General Chat and Staff Chat. I have the join event set up so that people who join automatically get General Chat; I have the team change event set up so that people who switch to Staff teams see the Staff teams; but now I need it so that, if you switch to a team that doesn't have permissions to see a channel, it hides that channel so they can't speak in it or see it?
#Deleting Text Channels for Local Player
1 messages · Page 1 of 1 (latest)
still need help?
ye
ai twin
u have to take the player out of the channel they shoulnt be in first
then you can put them in the right ones right now, your code only adds players to channels but doesnt remove them from channels they shouldnt see
there’s nothing to remove people from channels
so u need to add the "remove" part before we add them back into the right channels.
so how would i remove?
do u need help w that?
ye
ou can use the RemoveUserAsync
that doesn’t exist
ik cuz u need to use the RemoveUserAsync method provided by the TextChannel
wdym
its a complicated thing but in short you can use: TextChannel:RemoveAllUsers()) which adds users back into the correct channels based on their teams
this didn’t work