RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a script to print in red lua"
You can't print text in color directly to the output in Roblox Studio, but you can create a GUI to display colored text on the screen. Here's a script to create a red text label in a ScreenGui: ```lua -- Local Script local player = game:GetService("Players").LocalPlayer local screenGui = Instance.new("ScreenGui") screenGui.Parent = player.PlayerGui local textLabel = Instance.new("TextLabel") textLabel.Parent = screenGui textLabel.Size = UDim2.new(0, 200, 0, 50) textLabel.Position = UDim2.new(0.5, -100, 0.5, -25) textLabel.BackgroundTransparency = 1 textLabel.Text = "Hello, this is red text!" textLabel.TextColor3 = Color3.fromRGB(255, 0, 0) textLabel.Font = Enum.Font.SourceSansBold textLabel.TextSize = 24 ``` This script creates a ScreenGui with a TextLabel that displays red text. You can change the `textLabel.Text` property to display any text you want.