generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Delete teams -> Doesn't update until player resets

Previous Thread :: Next Thread 
2JJ1 is not online. 2JJ1
Joined: 15 Mar 2012
Total Posts: 1571
17 Aug 2015 07:23 PM
In Studio mode, the teams update once a team is deleted.
But in game play, a team isn't shown as deleted until the player is reset.

These are the lines that deletes the teams.
game.Teams:FindFirstChild("Red"):Destroy()
game.Teams:FindFirstChild("Blue"):Destroy()

What should I do? I heard of something about corescripts but i'm not sure how to use that.
Can't seem to find any tutorials on them q-q
Report Abuse
CynicalBusiness is not online. CynicalBusiness
Joined: 02 Oct 2009
Total Posts: 879
17 Aug 2015 07:29 PM
Still haven't gotten it? (I remember the last thread. :F)

Try this in a LocalScript somewhere.
game:GetService("Teams").ChildRemoved:connect(function ()
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, false);
wait();
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.PlayerList, true);
end);

Disables the leaderboard then re-enables it each time a child is removed from the teams list.
Report Abuse
2JJ1 is not online. 2JJ1
Joined: 15 Mar 2012
Total Posts: 1571
17 Aug 2015 07:39 PM
I used that before but I thought it created another one of the leaderboards.
I tried again reading but something seemed off.
I figured now that maybe some other script is doing something to the leaderboard.
Turns out that scripths admin was doing that. Deleted it and now i'm doing fine.

Many thanks man! I can finally resume on the project.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image