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
 

Re: :SetCore() not working

Previous Thread :: Next Thread 
Bernkastel2727 is not online. Bernkastel2727
Joined: 23 Sep 2012
Total Posts: 2612
22 Apr 2016 09:54 AM
local Enum_SETTINGS = {
PlayerList = true;
Health = true;
Backpack = true;
Chat = true;
}
for Settings, Value in next, Enum_SETTINGS do
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType[Settings], Value)
end
local Core_SETTINGS = {
PointsNotificationsActive = true;
BadgesNotificationsActive = true;
ChatBarDisabled = true;
TopbarEnabled = true;
}
for Settings, Value in next, Core_SETTINGS do
pcall(function()
local StarterGui = game:GetService('StarterGui')
StarterGui:SetCore([Settings], Value)
end)
end
Report Abuse
gskw is not online. gskw
Joined: 05 Jan 2013
Total Posts: 1364
22 Apr 2016 09:58 AM
Remove the pcall() and show the error.
Report Abuse
Bernkastel2727 is not online. Bernkastel2727
Joined: 23 Sep 2012
Total Posts: 2612
22 Apr 2016 10:09 AM
Line 18, unexpected symbol near '['
Report Abuse
SugoiKimochi is not online. SugoiKimochi
Joined: 05 Feb 2016
Total Posts: 31
22 Apr 2016 10:38 AM
Don't use the [] on line 18.


meow
Report Abuse
Bernkastel2727 is not online. Bernkastel2727
Joined: 23 Sep 2012
Total Posts: 2612
22 Apr 2016 10:42 AM
But I have to
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
22 Apr 2016 10:44 AM
this might be a stupid remark but I think your dictionaries are being defined incorrectly

shouldn't it be ["val"] = val,

instead of

[val] = val,


#Code print("Add 13,000 posts")
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