Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is wrong with my set chat enabled Gui?

Ok, so I'm making progress on my next big game, and something went wrong; I want to make a chat Gui for guests/noobs to chat. Since I do not know how to make a custom one, I'm using roblox's one. Here is my code I'm a little confused about:

local player = game.Players.LocalPlayer
local playerchar = game.Players.LocalPlayer.Character
function OnClicked(hit)
player.PlayerGui:SetCoreGuiEnabled(Enum, "Chat", true) -- this script would make the guest/noob get chat. (I'm assuming that StarterGui and playerGui both have setcoreguienabled.
end
player.PlayerGui.EnableChatGui["Click to enable chat"]Clicked:connect(function OnClicked) -- it says expected '=', got clicked but I've seen this before and I'm confused.

so you see that I assumed that PlayerGui has a :SetCoreGuiEnabled() like StarterGui does. But I don't think it is right, I also think the whole idea might be wrong. But I'm just testing. Thanks for reading! Feel free to post Wiki article links or forum post links that are related to making a custom Gui if this is not possible! Thanks again!

1 answer

✓ Accepted answer

You're missing a period on line 6 if that helps.

player.PlayerGui.EnableChatGui["Click to enable chat"](dot)Clicked:connect(function OnClicked)

3 comments

0

oh ok thanks. I'll test.

0

still wont work

0

but it gave me less errors.

This discussion is preserved as it was. New answers, comments, and votes are closed.