Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//Yeet RemoteConversion | Peepx0\\--
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local Frame_2 = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local Frame_3 = Instance.new("Frame")
- local Script = Instance.new("TextBox")
- local Execute = Instance.new("TextButton")
- local Clear = Instance.new("TextButton")
- local Copy = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.129412, 0.129412, 0.129412)
- Frame.BorderColor3 = Color3.new(0.129412, 0.129412, 0.129412)
- Frame.Position = UDim2.new(0.0785340294, 0, 0.330316752, 0)
- Frame.Size = UDim2.new(0, 503, 0, 338)
- Frame.Draggable = true; --Frame is draggable;
- Frame.Active = true; --Frame is active;
- Frame.Selectable = true; --Frame is selectable;
- Frame_2.Parent = Frame
- Frame_2.BackgroundColor3 = Color3.new(0.172549, 0.172549, 0.172549)
- Frame_2.BorderColor3 = Color3.new(0.172549, 0.172549, 0.172549)
- Frame_2.Size = UDim2.new(0, 503, 0, 64)
- TextLabel.Parent = Frame_2
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Position = UDim2.new(0.0139165008, 0, 0, 0)
- TextLabel.Size = UDim2.new(0, 285, 0, 64)
- TextLabel.Font = Enum.Font.SourceSansLight
- TextLabel.Text = "RemoteConversion"
- TextLabel.TextColor3 = Color3.new(1, 1, 1)
- TextLabel.TextSize = 43
- TextLabel.TextWrapped = true
- TextLabel.TextXAlignment = Enum.TextXAlignment.Left
- Frame_3.Parent = Frame
- Frame_3.BackgroundColor3 = Color3.new(0.164706, 0.164706, 0.164706)
- Frame_3.BorderColor3 = Color3.new(0.164706, 0.164706, 0.164706)
- Frame_3.Position = UDim2.new(0.0278329998, 0, 0.236686394, 0)
- Frame_3.Size = UDim2.new(0, 475, 0, 202)
- Script.Name = "Script"
- Script.Parent = Frame_3
- Script.BackgroundColor3 = Color3.new(1, 1, 1)
- Script.BackgroundTransparency = 1
- Script.Position = UDim2.new(0.0231578946, 0, 0.0346534662, 0)
- Script.Size = UDim2.new(0, 458, 0, 189)
- Script.Font = Enum.Font.SourceSans
- Script.Text = "--Script--"
- Script.TextColor3 = Color3.new(1, 1, 1)
- Script.TextSize = 26
- Script.TextXAlignment = Enum.TextXAlignment.Left
- Script.TextYAlignment = Enum.TextYAlignment.Top
- Execute.Name = "Execute"
- Execute.Parent = Frame
- Execute.BackgroundColor3 = Color3.new(0.172549, 0.172549, 0.172549)
- Execute.BorderColor3 = Color3.new(0.172549, 0.172549, 0.172549)
- Execute.Position = UDim2.new(0.0278330017, 0, 0.866863906, 0)
- Execute.Size = UDim2.new(0, 112, 0, 35)
- Execute.Font = Enum.Font.SourceSansLight
- Execute.Text = "Execute"
- Execute.TextColor3 = Color3.new(1, 1, 1)
- Execute.TextScaled = true
- Execute.TextSize = 14
- Execute.TextWrapped = true
- Execute.TextXAlignment = Enum.TextXAlignment.Left
- Clear.Name = "Clear"
- Clear.Parent = Frame
- Clear.BackgroundColor3 = Color3.new(0.172549, 0.172549, 0.172549)
- Clear.BorderColor3 = Color3.new(0.172549, 0.172549, 0.172549)
- Clear.Position = UDim2.new(0.272365808, 0, 0.866863906, 0)
- Clear.Size = UDim2.new(0, 112, 0, 35)
- Clear.Font = Enum.Font.SourceSansLight
- Clear.Text = "Clear"
- Clear.TextColor3 = Color3.new(1, 1, 1)
- Clear.TextScaled = true
- Clear.TextSize = 14
- Clear.TextWrapped = true
- Clear.TextXAlignment = Enum.TextXAlignment.Left
- Copy.Name = "Copy"
- Copy.Parent = Frame
- Copy.BackgroundColor3 = Color3.new(0.172549, 0.172549, 0.172549)
- Copy.BorderColor3 = Color3.new(0.172549, 0.172549, 0.172549)
- Copy.Position = UDim2.new(0.516898692, 0, 0.866863906, 0)
- Copy.Size = UDim2.new(0, 112, 0, 35)
- Copy.Font = Enum.Font.SourceSansLight
- Copy.Text = "Copy"
- Copy.TextColor3 = Color3.new(1, 1, 1)
- Copy.TextScaled = true
- Copy.TextSize = 14
- Copy.TextWrapped = true
- Copy.TextXAlignment = Enum.TextXAlignment.Left
- -- Scripts:
- --//Lets just get the easy bits over with...
- Clear.MouseButton1Down:connect(function()
- Script.Text = ""; --Clears the textbox;
- end)
- Copy.MouseButton1Down:connect(function()
- setclipboard(Script.Text); --Copies the script;
- end)
- Execute.MouseButton1Down:connect(function()
- loadstring(Script.Text)() --Gets the function loadstring returns and calls it.
- end)
- --//Making things work.exe
- local game_mt = getrawmetatable(game);
- local old_namecall = game_mt.__namecall;
- setreadonly(game_mt,false);
- --//The main juicy shitttt
- local function formatArguments(args)
- local return_string = "";
- for i,v in next, args do
- if type(v) == "string" then
- local index = i - 1;
- return_string = return_string.."local ARGUMENT_"..index.." = '"..tostring(v).."';\n";
- elseif type(v) == "number" then
- local index = i - 1;
- return_string = return_string.."local ARGUMENT_"..index.." = "..tonumber(v)..";\n";
- elseif type(v) == "boolean" then
- local index = i - 1;
- return_string = return_string.."local ARGUMENT_"..index.." = "..v..";\n";
- elseif type(v) == "table" then
- for _,v in next, v do
- local index = i - 1
- return_string = return_string.."local ARGUMENT_"..index.." = "..v..";\n";
- end
- end;
- end;
- return return_string;
- end;
- local function formatArgumentsLength(args)
- local return_string = "";
- local seperate = "";
- if #args > 1 then
- seperate = ",";
- end
- for i,v in next, args do
- if type(v) == "string" then
- local index = i - 1;
- if i == #args then
- seperate = "";
- end;
- return_string = return_string.."ARGUMENT_"..index..seperate;
- elseif type(v) == "number" then
- local index = i - 1;
- if i == #args then
- seperate = "";
- end;
- return_string = return_string.."ARGUMENT_"..index..seperate;
- elseif type(v) == "boolean" then
- local index = i - 1;
- if i == #args then
- seperate = "";
- end;
- return_string = return_string.."ARGUMENT_"..index..seperate;
- elseif type(v) == "table" then
- for _,v in next, v do
- local index = i - 1;
- if i == #args then
- seperate = "";
- end;
- return_string = return_string.."ARGUMENT_"..index..seperate;
- end
- end;
- end;
- return return_string;
- end;
- --Time for detecting remotes <3
- game_mt.__namecall = function(...)
- local args = {...};
- local method = args[#args];
- if method == "FireServer" or method == "InvokeServer" then
- table.remove(args,#args);
- Script.Text = [[local REMOTE_PATH = game.]]..args[1]:GetFullName().."\n";
- table.remove(args,1);
- Script.Text = Script.Text..formatArguments(args).."REMOTE_PATH:"..method.."("..formatArgumentsLength(args)..");";
- end
- return old_namecall(...);
- end
- warn("Loaded RemoteConversion.");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement