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

Why is this CoreGui script that tweaks the Chat not working?

Asked by 8 years ago

The script is supposed to display a message in the chat system when a brick is touched. The script works absolutely fine in Solo mode, but in Server and Online mode, it doesn't work.

I received this output though: "SetCore: ChatMakeSystemMessage has not been registered by the CoreScripts"

Can someone please help me? Here's the script:

bin = script.Parent

function onTouched(part)
    game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
    Text = "Domination is the chosen game mode."; -- Required. Has to be a string!
    StrokeColor = Color3.new(0,0,0);
    StrokeTransparency = 0.75;
    Color = Color3.new(255,255,255); -- Cyan is (0,255/255,255/255) -- Optional defaults to white: Color3.new(255/255, 255/255, 243/255)
    Font = Enum.Font.ArialBold; -- Optional, defaults to Enum.Font.SourceSansBold
    FontSize = Enum.FontSize.Size18; -- Optional, defaults to Enum.FontSize.Size18
    })
end

connection = bin.Touched:connect(onTouched)
0
I am having the same problem :/ TheDeadlyPanther 2460 — 8y
0
Is your script a LocalScript? it only works on a LocalScript. TheDeadlyPanther 2460 — 8y
0
Only works in a LocalScript inside the player. Tkdriverx 514 — 8y
0
I actually got it to work, but it was a more complex system than I had planned to make. Thanks for the help though CoolJohnnyboy 121 — 8y

Answer this question