Advertisement
Attrixx

Untitled

Dec 11th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. Template.MouseButton1Click:Connect(function()
  2.     local textThing = tostring("game." .. Self:GetFullName()) .. ":" .. tostring(NamecallMethod) .. "("
  3.     local count = 0
  4.     if typeof(Args) == "table" then
  5.         textThing = textThing .. "{\n"
  6.         for i,v in pairs(Args) do
  7.             textThing = textThing .. '["' .. tostring(i) .. '"] = "' .. tostring(v) .. '"'
  8.             if count > 0 then
  9.                 textThing = textThing .. ',\n["' .. tostring(i) .. '"] = "' .. tostring(v) .. '"'
  10.             end
  11.             count = count + 1
  12.         end
  13.         textThing = textThing .. "\n})"
  14.     elseif typeof(Args) == "string" then
  15.         textThing = textThing .. '"' .. tostring(Args) ..  '"'
  16.         textThing = textThing .. ")"
  17.     elseif Args == "" or Args == nil then
  18.         textThing = textThing .. ")"
  19.     end
  20.     ScriptBox.Text = textThing
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement