Please read the post before commenting.
Hello everyone, i have been working on this module around 1 - 2 months. I’ve made several unsuccessful modules but this is the one that got me this far.
LogModule Will help you keep track of stuff happening in game, you can customize it as you wanted.
How to use:
How to use
Before you start you need to turn on
Allow HTTP Requests (You need to publish your game/experience first before getting the options.)
Next get the file rbxm then put the folder to ServerScriptService;
- LogScript will be the example code that you can use
- LogModule is the module, Open it for more infos;
- Put your discord Webhooks in the ‘Webhooks’ ModuleScript
- You can edit anything in ‘Settings’ two important one is ‘Admins’ and ‘SendLogsCommand’
So when an admin says the ‘SendLogsCommand’ word, it will sends the game latest logs
You can try making a custom reporting by using this module.
local plrs = game:GetService("Players") local LogModule = require(script.Parent.LogModule) local landmine = script.Landmine.Value landmine.Touched:Connect(function(hit) local char = hit.Parent if char and char:FindFirstChild("Humanoid") then -- adds a log when Landmine triggered LogModule.AddLog(char.Name .. " Triggered the landmine") local ex = Instance.new("Explosion") ex.Position = landmine.Position ex.Parent = workspace landmine:Destroy() end end) plrs.PlayerAdded:Connect(function(plr) -- Adds a log when player joins LogModule.AddLog(plr.Name .. " has joined the game") plr.Chatted:Connect(function(msg) -- Adds a log when player chatted LogModule.AddLog("[".. plr.Name .."]: " .. msg) end) -- Checks if player an admin or not, if player an admin then the player can send logs LogModule.CheckAdmin(plr) end)
You can add custom Logs, lets say you have a game about Sword Fighting, you can use this module to keep track of the latest kills and if someone is being suspected as a cheater. Example;
This is my first ever post on Community Resource, tell me if theres something missing/wrong in this post. Thank you!