Roblox Gradient Generator
Make a gradient for Roblox Studio and copy the code: a UIGradient script for frames, buttons and labels, or gradient text as rich text. Pick the colours, set the rotation, done.
Code to copy
Roblox gradient ideas
Click one to load it, then copy the code above.
The Gradients is not affiliated with, endorsed by or connected to Roblox. Roblox is a trademark of Roblox Corporation.
How to add a gradient in Roblox Studio
Roblox makes UI gradients with an object called UIGradient. You place it inside the frame, button or label you want to colour, and it paints that one object. It works on Frame, TextLabel, TextButton, ImageLabel and ImageButton.
- In the Explorer window, select the object and insert a UIGradient into it.
- In the Properties window, click the Color field and then the ⋯ button to open the colour sequence. Each marker is a colour; click a marker to change it, or click the bar to add one.
- Set Rotation to turn the gradient. 0 runs left to right, 90 runs top to bottom.
Or skip the clicking: pick your colours above, copy the UIGradient script, and paste it into a LocalScript inside the object. The script creates the gradient for you.
Why your gradient looks dark or tinted
A UIGradient multiplies with the colour already on the object. On a grey frame every colour comes out darker; on a blue one everything shifts blue. Set the object’s BackgroundColor3 to white, or TextColor3 to white for text, and the gradient shows its true colours.
Roblox gradient text: two ways
A UIGradient on a text label colours all of the text as one sweep. Put the UIGradient inside a TextLabel or TextButton with white text. This is the simplest way to get a gradient title or button label.
Rich text colours each letter on its own with a <font color> tag, so only part of a sentence can be a gradient. Copy the Rich text code above; it turns on the label’s RichText property and sets the text. The tool escapes characters such as < and &, which rich text would otherwise read as markup.
ColorSequence and Color3, briefly
A gradient’s colours are stored as a ColorSequence: a list of keypoints, each with a position from 0 to 1 and a colour. The first keypoint has to be at 0 and the last at 1. A single colour is a Color3, which you can write as Color3.fromRGB(255, 0, 0) or Color3.fromHex("#FF0000").
Keep it simple for performance. Roblox advises against more than six colour stops on a UIGradient, which is why this tool stops at six. If you want a gradient to move, animate its Rotation or Offset rather than rewriting its colours every frame.
Frequently asked questions
Does this change my Roblox username colour?
No. This makes gradients for things you build in Roblox Studio: the frames, buttons and text in your own experience. It doesn’t change how your account name appears.
Can a UIGradient go on a ScrollingFrame or TextBox?
Not at the moment. Roblox lists both as unsupported. Put the gradient on a Frame behind them instead.
Can I use any gradient from this site in Roblox?
Yes. Every gradient page has a “Roblox Studio” link that opens this tool with that gradient’s colours and angle already set. Browse the library, or build one from scratch in the Gradient Generator.
