I’m pretty sure it’s either an error or you messed up the locations of the scripts, we need context
That or you may not own the gamepass itself
I’m pretty sure it’s either an error or you messed up the locations of the scripts, we need context
That or you may not own the gamepass itself
It’s somehow impossible…I mean it was supposed to work what did I do wrong there?
It puts me one time into it. But not to more times.
Here:
Oh, the data is too big… I upload it on YT then I send the link.
Are you switching around the teams via the other buttons in your guis? It’s likely that the other team changes are client sided, meaning it changes on the client, meaning the server can’t see it. If you try to change it once more from the server, it still thinks you’re in white team despite not being in it
Basically, are your other team changing buttons client sided? If so, they must be server sided as well
You have to use other teamevents for other teams
because it teams you on the same team if you fire the remoteevent
So I must now make more events, for every team?
Yes, for every team and then duplicate the scripts and change the name of the remoteevent to the remoteevents name.
O_O
ok
uhm…
ok…
i will try it…
Let me know if any errors but there shouldn’t be.
Wouldn’t it be better to have a RemoteEvent that handles the teaming of the non-gamepass teams with some sanity checks there and there and a RemoteEvent for the gamepass team? It feels unnecessary to have to make 1 event for each when something like this should suffice for the teams anyone can join
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Teams = game:GetService("Teams")
local gamePassTeamName = "Swat"
ReplicatedStorage.ChangeTeam.OnServerEvent:Connect(function(player, teamName)
local team = Teams:FindFirstChild(teamName)
if teamName == gamePassTeamName or not team then
return
end
player.Team = team
--Any other needed code afterwards
end)
Granted it could be made even more sanitised with a few more checks, but this should be a basic way to team for the other teams excluding the team that requires a gamepass
It works!!!
Thank ya’ll so much!!!
YAAAAAAAAAAAAAAAAAAAAAAAAAY
No problem lol, :))) if any other errors just post another post
That’s cool too, cool idea it should work too I guess, I need help with something let’s take it to direct messages.