Hello,
Does anyone have any articles that can help me make a gui that projects what a player has said in chat?
Thanks
Hello,
Does anyone have any articles that can help me make a gui that projects what a player has said in chat?
Thanks
I know you said article but I'm here to give you a script.
A SurfaceGui or a ScreenGui? I'm going to assume you mean SurfaceGui.
So to start off: Make a Script in ServerScriptService.
Script:
game.Players.PlayerAdded:Connect(function(plr) -- when a player joins
plr.Chatted:Connect(function(msg)
workspace.PartName.SurfaceGuiName.TextLabelName.Text = plr.Name..": "..msg
-- Replace PartName with your part's name, SurfaceGuiName with your surface gui's name, and TextLabelName with the name of your text label.
end)
end)
Not too hard, yet suprisingly cool.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
You could try reading this: https://developer.roblox.com/en-us/api-reference/event/Player/Chatted