Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Template.MouseButton1Click:Connect(function()
- local textThing = tostring("game." .. Self:GetFullName()) .. ":" .. tostring(NamecallMethod) .. "("
- local count = 0
- if typeof(Args) == "table" then
- textThing = textThing .. "{\n"
- for i,v in pairs(Args) do
- textThing = textThing .. '["' .. tostring(i) .. '"] = "' .. tostring(v) .. '"'
- if count > 0 then
- textThing = textThing .. ',\n["' .. tostring(i) .. '"] = "' .. tostring(v) .. '"'
- end
- count = count + 1
- end
- textThing = textThing .. "\n})"
- elseif typeof(Args) == "string" then
- textThing = textThing .. '"' .. tostring(Args) .. '"'
- textThing = textThing .. ")"
- elseif Args == "" or Args == nil then
- textThing = textThing .. ")"
- end
- ScriptBox.Text = textThing
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement