Posted
Script that logs chat messages
Prints messages in console
Copies logs to clipboard
Saves logs into a file
Useful for games with only bubble chat
--[[
Chatlogs
Prints logs in console
Copies logs to clipboard
Saves logs into a file
Made by RunDTM
]]
local noobplr = "" --leave clear if you dont want to log only one player
local logfilename = "chatlog.txt" -- Log file name
local plrs = game:service'Players'
local getplrs = plrs:GetChildren()
local smallpp = ""
if not writefile then
plrs.LocalPlayer:Kick("No writefile function")
end
for i,plr in pairs(getplrs) do
plr.Chatted:Connect(function(msg)
if noobplr == "" then
print(plr.Name..": "..msg)
smallpp = smallpp..plr.Name..": "..msg.."\n"
setclipboard(smallpp)
writefile(logfilename, smallpp)
elseif plr.Name == noobplr then
print(plr.Name..": "..msg)
smallpp = smallpp..plr.Name..": "..msg.."\n"
setclipboard(smallpp)
writefile(logfilename, smallpp)
end
end)
end
plrs.PlayerAdded:Connect(function(plr)
plr.Chatted:Connect(function(msg)
if noobplr == "" then
print(plr.Name..": "..msg)
smallpp = smallpp..plr.Name..": "..msg.."\n"
setclipboard(smallpp)
writefile(logfilename, smallpp)
elseif plr.Name == noobplr then
print(plr.Name..": "..msg)
smallpp = smallpp..plr.Name..": "..msg.."\n"
setclipboard(smallpp)
writefile(logfilename, smallpp)
end
end)
end)Professional noob
Replied
Mmm I See a Variable Called smallpp NiceÂ
Cancel
Post
Replied
hehe smal pp, anyways cool script
Cancel
Post
"if you cannot defeat your enemy, give them a bj in the walmart parking lot" Sun Tzu, The art of war
stuff ik/have:
SynX Krnl Scriptware LUA(beginner) C++(so bad at it)   funi vidoe
Replied
not bad bro
Â
monke
Â
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post