Basically, I have this gui that is pretty much a chat system, has 5 lines of text for people to use, but what I want it to do is to get the person who sent the message's username. It will then output this plus the text they sent (I can do that part).
Here's my script so far:
local server = game.Workspace.Server.server.SurfaceGui
local GUI = script.Parent.Parent
local plyr = game.Players.LocalPlayer --- not sure how but this is where the name will be
script.Parent.MouseButton1Down:connect(function()
server.line1.Text = plyr.. GUI.inp.Text
end)
Thanks for any help.

2 comments
XD I was going to help you XD
Thanks anyways :)