Console Frame and Toggle Console · RobloxExploits.lolConsole Frame and Toggle Console
PlayerExploits 2 years ago 86K viewsRun it
Copy the script and paste it into your executor.
Console Frame and Toggle Console.lua · 83 lines
screenGui = .()
screenGui.Name =
screenGui.Parent = .Players.LocalPlayer:()
frame = .()
frame.Name =
frame.Size = .(, , , )
frame.Position = .(, , , )
frame.BackgroundColor3 = .(, , )
frame.BackgroundTransparency =
frame.Active =
frame.Draggable =
frame.Parent = screenGui
scrollingFrame = .()
scrollingFrame.Name =
scrollingFrame.Size = .(, , , )
scrollingFrame.CanvasSize = .(, , , )
scrollingFrame.ScrollBarThickness =
scrollingFrame.BackgroundTransparency =
scrollingFrame.Parent = frame
textLabel = .()
textLabel.Name =
textLabel.Size = .(, -, , )
textLabel.Position = .(, , , )
textLabel.BackgroundTransparency =
textLabel.TextSize =
textLabel.TextWrapped =
textLabel.TextYAlignment = .TextYAlignment.Top
textLabel.Text =
textLabel.TextColor3 = .(, , )
textLabel.Parent = scrollingFrame
toggleButton = .()
toggleButton.Name =
toggleButton.Size = .(, , , )
toggleButton.BackgroundColor3 = .(, , )
toggleButton.BackgroundTransparency =
toggleButton.Text =
toggleButton.TextColor3 = .(, , )
toggleButton.Parent = screenGui
()
jumpButton = .Players.LocalPlayer.PlayerGui:():()
jumpButton
toggleButton.Position = .(, -toggleButton.Size.X.Offset - , , -toggleButton.Size.Y.Offset - )
()
:().RenderStepped:(updateButtonPosition)
(message)
textLabel.Text = textLabel.Text .. message ..
scrollingFrame.CanvasSize = .(, , , textLabel.TextBounds.Y)
originalPrint =
= (...)
message =
i, v ({...})
message = message .. (v) ..
(message)
(message)
toggleButton.MouseButton1Click:(()
frame.Visible = frame.Visible
)
About this script
Cool thing so u cant type /console anymore if mobile
-- Create the ScreenGui
local
Instance
new
"ScreenGui"
"MyUIGui"
game
WaitForChild
"PlayerGui"
-- Create a Frame
local
Instance
new
"Frame"
"MainFrame"
UDim2
new
0.8
0
0.8
0
-- Increased size for better mobile support
UDim2
new
0.1
0
0.1
0
-- Centered on the screen
Color3
fromRGB
0
0
0
-- Black background
0.5
-- Semi-transparent
true
false
-- Not draggable
-- Create a ScrollingFrame inside the Frame
local
Instance
new
"ScrollingFrame"
"ScrollingFrame"
UDim2
new
1
0
1
0
UDim2
new
1
0
2
0
-- Allow space for scrolling
10
1
-- Make background transparent
-- Create a TextLabel inside the ScrollingFrame to display messages
local
Instance
new
"TextLabel"
"MessageLabel"
UDim2
new
1
10
2
0
-- Match the CanvasSize for full scrollable area
UDim2
new
0
5
0
0
1
-- Make background transparent
14
-- Set the text size to be smaller
true
Enum
""
-- Initial empty text
Color3
fromRGB
255
255
255
-- White text for contrast
-- Create the toggle button
local
Instance
new
"TextButton"
"ToggleButton"
UDim2
new
0.1
0
0.1
0
Color3
fromRGB
0
0
0
0.5
"open/close"
Color3
fromRGB
255
255
255
-- Position the toggle button above the jump button
local
function
updateButtonPosition
local
game
FindFirstChild
"TouchGui"
FindFirstChild
"JumpButton"
if
then
UDim2
new
1
10
1
10
-- Adjust positioning
end
end
-- Call the function to set the initial position
updateButtonPosition
-- Update the button position whenever the jump button moves (e.g., on screen resize)
game
GetService
"RunService"
Connect
-- Function to update the text in the frame
local
function
updateText
"\n"
-- Append the message to the TextLabel
UDim2
new
1
0
0
-- Update the canvas size to fit the text
end
-- Override the default print function
local
print
print
function
local
""
for
in
ipairs
do
tostring
" "
end
originalPrint
-- Call the original print function
updateText
-- Update the text in the frame
end
-- Toggle button functionality
Connect
function
not
end