|
How do you make it to where this shows up as random flowing colors instead of one solid color?
if name.Text == "S_ynthetic" then
name.TextStrokeTransparency = 0
name.TextStrokeColor3 = Color3.new(0, 122, 229)
role.TextStrokeTransparency = 0
role.TextStrokeColor3 = Color3.new(0, 122, 229)
role.Text = "Chairman & Founder"
|
|
|
|
Dev_TonyJoin Date: 2012-11-26 Post Count: 5351 |
Are you asking about how to make the text color constantly change its color to a random one? |
|
kojocrashJoin Date: 2013-09-07 Post Count: 277 |
I aint doing it for 1 robux |
|
|
@Dev, yes.
@kajajgakadasva, Please stop replying about "juhhh i aint doin it gor on rolux"
|
|
|
Do you mean transitioning through random colors, or just random every time it's called? |
|
|
Just random every time its called.
|
|
|
|
|
b3
synthetic, synthesized |
|
|
b4
synthetic, synthesized |
|
|
b5
synthetic, synthesized |
|
Dev_TonyJoin Date: 2012-11-26 Post Count: 5351 |
For starters, please stop bumping.
if name.Text == 'S_ynthetic' then
name.TextStrokeTransparency = 0
role.TextStrokeTransparency,role.Text = 0, 'Chairman & Founder'
coroutine.resume(coroutine.create(function()
while true do
local newColor = Color3.new(math.random(0, 255), math.random(0, 255), math.random(0, 255)
name.TextStrokeColor3 = newColor
role.TextStrokeColor3 = newColor
wait(1)
end
end))
end |
|
|
doesnt work
synthetic, synthesized |
|
Dev_TonyJoin Date: 2012-11-26 Post Count: 5351 |
Oops, sorry; I made a mistake in the script.
The one below should work:
if name.Text == 'S_ynthetic' then
name.TextStrokeTransparency = 0
role.TextStrokeTransparency,role.Text = 0, 'Chairman & Founder'
coroutine.resume(coroutine.create(function()
while true do
local newColor = Color3.new(math.random(0, 255), math.random(0, 255), math.random(0, 255))
name.TextStrokeColor3 = newColor
role.TextStrokeColor3 = newColor
wait(1)
end
end))
end |
|
|
still doesnt work :l
synthetic, synthesized |
|
Dev_TonyJoin Date: 2012-11-26 Post Count: 5351 |
Any errors? |
|
|
13:11:02.984 - ServerScriptService.RankHandler:38: 'end' expected (to close 'function' at line 5) near 'eof'
synthetic, synthesized
it has the on the 'eof'
synthetic, synthesized |
|
|
heres the whole script
local rs = game:GetService("ReplicatedStorage")
local remotefolder = rs:WaitForChild("RankFolder")
local remote = remotefolder:WaitForChild("RankPlayerOnRespawn")
remote.OnServerEvent:connect(function(Player)
if not Player then
print("an error occured fetching the player")
end
local pRank = Player:GetRoleInGroup(2691366)
wait(1)
local ui = script.Rank:Clone()
ui.Parent = Player.Character
ui.Adornee = Player.Character.Head
while not Player.Character.Humanoid do wait() end
Player.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
local frame = ui.Frame
local name = frame.Name1
local role = frame.TextLabel
name.Text = Player.Name
role.Text = pRank
if name.Text == 'Player1' then
name.TextStrokeTransparency = 0
role.TextStrokeTransparency,role.Text = 0, 'Chairman & Founder'
coroutine.resume(coroutine.create(function()
while true do
local newColor = Color3.new(math.random(0, 255), math.random(0, 255), math.random(0, 255))
name.TextStrokeColor3 = newColor
role.TextStrokeColor3 = newColor
wait(1)
end
end))
end
synthetic, synthesized |
|
|
Dev_TonyJoin Date: 2012-11-26 Post Count: 5351 |
Is there any other code in the script that could be causing the error? |
|
Dev_TonyJoin Date: 2012-11-26 Post Count: 5351 |
You need to add 'end)' at the very end of your script. |
|
|
It works but it doesnt change colors.
synthetic, synthesized |
|
|
if you want a smooth transition between colors use Color3.lerp() |
|