Hello everyone, I am trying to make a frame fill the color of text.
I am trying to achieve the background color of the frame to be the textcolor while still keeping the same text color as I want to make it move.
Basically I just want to get rainbow text.
1 Like
Hazelfluff
(Hazelfluff)
November 30, 2024, 7:53pm
#2
(Have you tried searching up “roblox studio Rainbow Text?”
title.
Here’s the script:
local groupID = 17172847
game.Players.PlayerAdded:Connect(function(player)
local groupRank = player:GetRoleInGroup(groupID)
local clone = script.Rank:Clone()
clone.Parent = game.Workspace:WaitForChild(player.Name).Head
clone.Frame.Name1.Text = player.Name
clone.Frame.Rank.Text = groupRank
player.CharacterAdded:Connect(function()
local groupRank = player:GetRoleInGroup(groupID)
local clone = script.Rank:Clone()
clone.Parent = game.Workspace:WaitForChild…
There are multiple ways to do this.
Here is one of them -
Using tick() with HSV
[Take this as an example that could be used in yours]
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ChatService = require(game.ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local overheadGui = script.NameTag
local groupId = 00000000 --your group ID
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
loc…
I’m trying to make animated rainbow text with UIGradient, by tweening the offset of the Gradient. The problem is that when the offset is being tweened off it is trailed by the first color only.
[image] [image]
I tried searching it, which didn’t get me a solution to what I wanted, duplicating the UIGradient to add a clone behind it, which didn’t even show up. It may be possible by changing the color of the actual text to make it look like it’s moving, but it doesn’t seem to really work.
I know this topic is old, but I thought that I would share a way to create a string of rich text that has a rainbow color pattern. This is for anyone looking for the answer in the future.
Below you can find a simple way to add rich text tags to add color:
local GRAPHEMES_PER_COLOR_LOOP = 16
local COLOR_SATURATION = .75
local function rainbowifyText(text: string): string
local rainbowText = ""
local currentColorIndex = Random.new():NextNumber() * GRAPHEMES_PER_COLOR_LOOP
for first, last in…
You will need to insert a UI gradient inside of the text label and then create a rainbow design for the color. Remember to set the text color to white or it will not look correct in game.
This documentation should be useful:
UI Gradient Documentation
This is code for a color changing GUI that I made a while ago (it moves too):
local object = script.Parent
object.AnchorPoint = Vector2.new(0.5,
0.5)
wait(2)
object:TweenPosition(UDim2.new(0, 0, 0
,0),nil,nil,5)
object:TweenSize(UDim2.new(0, 400, 0,
100))
local t = 10;
while wait() do
local hue = tick() % t / t
local color = Color3.fromHSV(hue,1,1)
script.Parent.BackgroundColor3 = color
end
No, but it is not what i am trying to achieve as i want it to work with images and other
Hazelfluff
(Hazelfluff)
December 1, 2024, 12:48pm
#4
The tittle of the post is litterally “Help with text and UI gradient combination”
Im pretty sure all of the examples I gave do what you are asking, in various different ways.
Is rainbow text not what you asked for? Also, I don’t think images have a “textcolor” value. Could you be more specific?
If its images you are asking for:
Hello! Im trying to make It so my Image label will change colors, when I use this script
while true do
script.Parent.BackgroundColor3 = Color3.new(1,0,0)
wait(0.01)
script.Parent.BackgroundColor3 = Color3.new(1,0.1,0)
wait(0.01)
script.Parent.BackgroundColor3 = Color3.new(1,0.2,0)
wait(0.01)
script.Parent.BackgroundColor3 = Color3.new(1,0.3,0)
wait(0.01)
script.Parent.BackgroundColor3 = Color3.new(1,0.4,0)
wait(0.01)
script.Parent.BackgroundColor3 = Color3.new(1,0.5,0)
wait(0.01)
s…
just insert the ui gradient into the text (make sure the text labels background transparency is 1) and edit the offst that should work. also if u still want a backgorund for ur text just insert it into another frame.
1 Like
Sorry, I don’t really know how to explain but I once saw text with a custom background like waves as an image behind and the text has some sort of clip descendants on I think it was with viewport frames. So that’s basically what i am trying to achieve
I found the actual name, it’s Text Mask, I’ll try to recreate it
I found the solution, for those that want it, it’s in this game and it’s the wavy text
1 Like
system
(system)
Closed
December 17, 2024, 4:44pm
#9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.