Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I have a team changing script that doesn't work in real game but worked in studio?

Asked by 7 years ago

I placed a team changing script for my group, it worked perfectly fine on Studio but not on Roblox. Please help.

https://gyazo.com/fc9673555de324fb59f6c95e6df13e80

https://gyazo.com/10247c17a3f9172aa2c22294f48166a3

3 answers

Log in to vote
0
Answered by 7 years ago

While you're testing go to Test tab in Studio and choose a local server then choose how many players you want and in that way you can test all your scripts and stuff like that until they work. Once you're done just click clean up and it will clean up all the players. I had this problem but also check the developer console while you are in the game to see the error.

Cheers

Ad
Log in to vote
0
Answered by 7 years ago

I've had this problem before, I simply switched over to the "Team" value and it fixed everything for me.

Can't provide a script for you but here's how you do it. The "Team" value is in the Player, same as the "TeamColor", but the "Team" value requires the Team object instead of the color.

For example, you can do this:

Player.Team = game.Teams.USAF
Log in to vote
0
Answered by 7 years ago

Some additional detail, when I click it on Roblox studio it registers but if I click it ingame it doesn't register.

Answer this question