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?
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.