Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.1
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local TextButton = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- TextButton.Parent = ScreenGui
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.BackgroundTransparency = 0.850
- TextButton.Position = UDim2.new(0.818238974, 0, 0.863741398, 0)
- TextButton.Size = UDim2.new(0.0402515717, 0, 0.035334859, 0)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Chat Toggle"
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextScaled = true
- TextButton.TextSize = 14.000
- TextButton.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextStrokeTransparency = 0.025
- TextButton.TextWrapped = true
- enabled = 1
- ---Original script below (aLmost no modificationaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
- local bypassthing = game:HttpGet('https://pastebin.com/raw/pNDkmBz7',true) .. game:HttpGet('https://pastebin.com/raw/pNDkmBz7',true)
- local mt = getrawmetatable(game)
- local oldNamecall = mt.__namecall
- if setreadonly then setreadonly(mt, false) else make_writeable(mt, true) end
- local namecallMethod = getnamecallmethod or get_namecall_method
- local newClose = newcclosure or function(f) return f end
- local bypassthing = game:HttpGet('https://pastebin.com/raw/pNDkmBz7',true) .. game:HttpGet('https://pastebin.com/raw/pNDkmBz7',true)
- mt.__namecall = newClose(function(...)
- local method = namecallMethod()
- local args = {...}
- if tostring(method) == "FireServer" and tostring(args[1]) == "SayMessageRequest" then
- local r = ''
- local splitted = string.split(args[2]," ")
- for i,v in pairs(splitted) do
- local t = ''
- for i = 1, string.len(v) do
- t = t.. bypassthing ..string.sub(v,i,i)
- end
- r = r..t.." "
- end
- if enabled == 1 then ---This if statement was not in the original script, but the action for args[2] = r was! This controls setting your message to bypass or not
- args[2] = r
- end
- return oldNamecall(unpack(args))
- end
- return oldNamecall(...)
- end)
- if setreadonly then setreadonly(mt, true) else make_writeable(mt, false) end
- ---Original script above
- TextButton.MouseButton1Click:connect(function()
- if enabled == 1 then enabled = 0 TextButton.BackgroundColor3 = Color3.fromRGB(0, 0, 255) else enabled = 1 TextButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0) end
- print('press', enabled)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement