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

SetCore not working?

Asked by
IXLKIDDO 110
8 years ago

So what I'm attempting to create is a mute command. Very simple, if it wasn't for the fact that the SetCore wouldn't occur.

local Mute = script["Local Script Engine"]:Clone()
Mute.Parent = v
Mute.Code.Value = [[
    game:GetService("StarterGui"):SetCore("ChatBarDisabled", true)              
    print("test")
]]
Mute.Disabled = false

Now, the command works fine and correctly finds the player and does everything. I can tell because test is printed; the only problem is just that the default chatbar isn't disabled like how it is supposed to be in both online and offline. Any help?

1 answer

Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
8 years ago

There are two reasons your script is not working that I can imagine.

  • After earlier updates this year ROBLOX has completely disabled the loadstring() function for all local scripts, and modules required by local scripts. Unless you are using a module that can run code without LoadString, like Epix Incorporated has in their Server Suite Admin, you would have to write the code in advance to its use. Also, no you can not turn the LoadStringEnabled property on in ServerScriptService and have it work, you still have to make the necessary code in advanced.

  • The other reason for your script not working is that, SetCore() is not fully developed yet. It even says in the notes of the wiki page;

    Some may be listed here while they don't work yet (but don't error either). This means that it's currently still disabled, but will be enabled soon.

After a little bit of testing in studio I was able to find that ChatBarDisabled, and SendNotification, were two of those not working functions but are still being developed.

Hopefully this answer helped, if you have any questions feel free to comment. Also if you're getting an error from this script or any future scripts, it would benefit us if you posted that along with your question.

0
Thanks. Yeah, after reading the latter I understood why as it was printing out "test". My only question is, does that mean that this type of command will no longer work in online mode (haven't bothered to check if the "test" is printed in online but it does in offline)? IXLKIDDO 110 — 8y
Ad

Answer this question