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

Why does my code to send a message on chat by clicking on a gui not work?

Asked by 1 year ago

No problems shows in the editor, i can't seem to be able to fix this.

local function leftClick()
    game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage",{
    Text = ("Angry Munci has Spawned!");
    Color = Color3.new(255,255,255);
    Font = Enum.Font.Creepster; 
    FontSize = Enum.FontSize.Size18;
    })
end
script.Parent.MouseButton1Click:Connect(leftClick)
0
It works for me C1RAXY 81 — 1y
0
What I did was just make a localscript inside a text button and done C1RAXY 81 — 1y
0
Change `FontSize = Enum.FontSize.Size18` to `TextSize = 18`. T3_MasterGamer 2189 — 1y

1 answer

Log in to vote
5
Answered by
C1RAXY 81
1 year ago

I don't see anything wrong with your code, make sure to run the script in LocalScript and I think it should work for you. :)

1
fuck i forgot about making it a localscript NoobciderLXKD2 5 — 1y
Ad

Answer this question