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

How can I put a players recent saying in a gui? [Sync List Chat Log]

Asked by 10 years ago

I want to make a GUI that shows the text of recent player's sayings. So far I have this but it doesn't seem to work I might be doing something wrong but im not sure. How would I get the players recent sayings and put it in a GUI? [SCRIPT]

01MainPlayer = game.Players.SavageMunkey
02logs = {}
03function GetLogs(name)
04local log = "Logs:"
05for i = 1,#logs do
06if logs[i] == logs[name] then
07log = log..table.concat(logs[name])
08else
09end
10end
11return log
12end
13 
14function getLogz(m, plr)
15        if m:sub(1,8) == "getlogs;" then
View all 29 lines...
0
Edit your post to use the Lua code formatting feature. BlueTaslem 18071 — 10y
0
It should be table.insert(logs,1,p.Name .. '-' .. m) on line 27. Logs bing the name of the table, 1 bing the position the object will be placed so it's the most recent, and plr.Name and m to record the chat. M39a9am3R 3210 — 10y

Answer this question