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

What is wrong with my set chat enabled Gui?

Asked by 9 years ago

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

Log in to vote
0
Answered by
RedCombee 585 Moderation Voter
9 years ago

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

player.PlayerGui.EnableChatGui["Click to enable chat"](dot)Clicked:connect(function OnClicked)
0
oh ok thanks. I'll test. TroytheDestroyer 75 — 9y
0
still wont work TroytheDestroyer 75 — 9y
0
but it gave me less errors. TroytheDestroyer 75 — 9y
Ad

Answer this question