Categories > Coding > Lua >

[REL] Log Copier

PoopMaster

SoundInfinity

noticed

Posts: 120

Threads: 23

Joined: Jul, 2019

Reputation: 9

Posted

A really simple script, which uses the LogService to store output messages sent out while the script is running. 

An "Output" button should appear at the bottom right of the screen, if you click it, the GUI should expand and reveal another button with the text, "Save", (because WRD doesn't support any type of file writing) it's copied to your clipboard as a JSON string. Then you can use a JSON editor to navigate it.

 

Why the hell would i use this?

  • If you just trying to make something like a tp script and want multiple coordinates and have them be easily copied and pasted.
  • Also, could be used for debugging.

 

[code]

local function hasAccessTo(obj)local ret;pcall(function()Instance.new("TextLabel", obj):Destroy()ret = obj;end);return ret;end

 

local MainGUI = Instance.new("ScreenGui")

local Frame = Instance.new("Frame")

local Toggle = Instance.new("TextButton")

local Save = Instance.new("TextButton")

 

MainGUI.Name = "MainGUI"

MainGUI.Parent = hasAccessTo(game:GetService("CoreGui")) or game:GetService'Players'.LocalPlayer:WaitForChild("PlayerGui")

MainGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

 

Frame.Parent = MainGUI

Frame.AnchorPoint = Vector2.new(1, 1)

Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

Frame.BackgroundTransparency = 0.500

Frame.BorderSizePixel = 0

Frame.ClipsDescendants = true

Frame.Position = UDim2.new(1, -4, 1, -4)

Frame.Size = UDim2.new(0, 103, 0, 28)

 

Toggle.Name = "Toggle"

Toggle.Parent = Frame

Toggle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

Toggle.BackgroundTransparency = 0.500

Toggle.BorderColor3 = Color3.fromRGB(206, 206, 206)

Toggle.Position = UDim2.new(0, 4, 0, 4)

Toggle.Size = UDim2.new(1, -8, 0, 20)

Toggle.Font = Enum.Font.GothamSemibold

Toggle.Text = "Output"

Toggle.TextColor3 = Color3.fromRGB(0, 0, 0)

Toggle.TextSize = 13.000

 

Save.Name = "Save"

Save.Parent = Frame

Save.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

Save.BackgroundTransparency = 0.500

Save.BorderColor3 = Color3.fromRGB(206, 206, 206)

Save.Position = UDim2.new(0, 4, 0, 28)

Save.Size = UDim2.new(1, -8, 0, 20)

Save.Font = Enum.Font.GothamSemibold

Save.Text = "Save"

Save.TextColor3 = Color3.fromRGB(0, 0, 0)

Save.TextSize = 13.000

--

 

local twargs={"Out", "Quad", 0.5, true}

function RePosition(what, YPadding)

what:TweenPosition(UDim2.new(1, -4, 1, YPadding), unpack(twargs))

end

 

local active = true

Toggle.MouseButton1Up:Connect(function()

active = not active

local s=Frame.Size

if active then -- Close

RePosition(Frame, -4)

Frame:TweenSize(UDim2.new(s.X.Scale, s.X.Offset, s.Y.Scale, 28), unpack(twargs))

else -- Open

Frame:TweenSize(UDim2.new(s.X.Scale, s.X.Offset, s.Y.Scale, 52), unpack(twargs))

RePosition(Frame, -8)

end

end)

 

 

local Logs={}

local strlimit = 200

 

function stringify()

return game:GetService("HttpService"):JSONEncode(Logs);

end

 

function onMessage(Msg, Type) Type = Type.Name

if not Logs[Type.Name] then Logs[Type]={} end

table.insert(Logs[Type], tostring(Msg):sub(0, strlimit or -1))

end

 

game:GetService("LogService").MessageOut:Connect(onMessage)

 

Save.MouseButton1Up:Connect(function()

(toclipboard or setclipboard or print)(stringify())

 

end)

[/code]

 

Stuff: Just wanted to make a little contribution, to not be a leech.

Edit: Any exploit with toclipboard or setclipboard is capable of running this script.

  • 0

Proud creator of: WRD+

classiccat

#becomeacat

vip

Posts: 419

Threads: 1

Joined: Aug, 2019

Reputation: -47

Replied

vouch for this

 

ya'll need synapse x for this

  • 0

...

Posts: 20

Threads: 2

Joined: Apr, 2020

Reputation: -20

Replied

Ok..                    

  • 0

Posts: 412

Threads: 28

Joined: Jan, 2018

Reputation: 14

Replied

https://pastebin.com/VRccwcRz

recommend using pastebin when releasing scripts :)

  • 0

jex

yes

Posts: 1799

Threads: 110

Joined: Nov, 2019

Reputation: 13

Replied

^                        

  • 0

yes

TeekTacker

(apparently) YNW Melly

Posts: 670

Threads: 85

Joined: Jan, 2019

Reputation: -95

Replied

Pretty sure you need paid exploits to use this

  • 0

Proud owner of Artemis

I quit exploiting

I might buy Premium soon!

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )