Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How to change a Hint's Color Value?

Asked by 9 years ago

I took Pictures as a reference to my question

What I am trying to do is set a Hint for this game but make the colors glow neon and black so it pops out better.

This is the current hint: Edit: it didn't go through because of a bugup in my Bandicam's video/picture capture. Note: The hint I was trying to make is just the default black and white hint.

This is my desired hint: Imgur link to Hint

The thing is, I'm not sure of the way. I know that there has something to do with the Color of it, but I can't tell what to edit, so I pieced it out.

while true do
local h = Instance.new("Hint")
h.Parent = game.Workspace
h.Text = "Welcome to Paintball Warfare, created by JustGimmeDaBux" -- The message I'm talking about.
wait(8) --I know wait(8) is a small wait time but it will be updated in the future.
h.Text = "Mapmakers will soon be needed! Start working on maps!" -- Not yet ;)
wait(8)
h.Text = "The expected release date is 02/01/2015"
wait(8)
h.Text = "Have fun on Paintball Warfare!"
end


Once I rewrote it and dillydallied with some colors, this is what I got:

while true do
local h = Instance.new("Hint")
h.Parent = game.Workspace
h.Text = "Welcome to Paintball Warfare, created by JustGimmeDaBux" -- I excluded the green text.
local.Color(Lime green, Really black) 
wait(8)
h.Text = "Mapmakers will soon be needed! Start working on maps!"
local.Color(Lime green, Really black) 
wait(8)
h.Text = "The expected release date is 02/01/2015"
local.Color(Lime green, Really black) 
wait(8)
h.Text = "Have fun on Paintball Warfare!"
local.Color(Lime green, Really black) 
end
    end --My friend told me that when you add in the local.Color script you need to end it separately, but I doubt it.


All the help I can get would be awesome. Thanks

You all rock. Have a nice day SH!

0
I updated my answer. NotsoPenguin 705 — 9y

4 answers

Log in to vote
1
Answered by 9 years ago

Hints are now deprecated and I don't believe that you can colour a hint. You have to create a TextLabel.

local Screen = Instance.new("ScreenGui")
local Label = Instance.new("TextLabel",Screen)
Label.Size = UDim2.new(1,0,.04,0) --Change Size to your liking,
Label.TextColor3 = Color3.new(0,1,0) --Lime Green
Label.BackgroundColor3 = BrickColor.Black().Color
Label.BackgroundTransparency = .5
Screen.Name = "Hint"
Label.Text = "Welcome!"

--Give the Gui to who you want to.
Game.Players.PlayerAdded:connect(function(Player)
Screen:Clone().Parent = Player.PlayerGui
end)

0
Thanks! JustGimmeDaBux 18 — 9y
0
Wait. Is that the script, because when I join the game as a user it doesn't show anything. JustGimmeDaBux 18 — 9y
0
Regarding this, when you have multiple you would like to have appear after x amount of time, what would change in the Script? JustGimmeDaBux 18 — 9y
Ad
Log in to vote
1
Answered by 9 years ago

Like messor said, this is impossible. Although i was so surprised that I went to test it. But you can make what you want with a textlabel. I can also show you how to change a single player's ambient if you want.

Log in to vote
1
Answered by 9 years ago

To add on to notsopwnedg's code:

--Please note that this will not work if you have Filtering enabled

local Screen = Instance.new("ScreenGui")
local Label = Instance.new("TextLabel",Screen)
Label.Size = UDim2.new(1,0,.04,0) --Change Size to your liking,
Label.TextColor3 = Color3.new(0,1,0) --Lime Green
Label.BackgroundColor3 = BrickColor.Black().Color
Label.BackgroundTransparency = .5
Screen.Name = "Hint"
Label.Text = "Welcome!"

--Give the Gui to who you want to.
Game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(char)
wait()
Screen:Clone().Parent = Player:WaitForChild('PlayerGui');
end)
Log in to vote
-1
Answered by 9 years ago

No no no... what you took a picture of is called a Gui--> TextLabel there is no way in Rbx.Lua to change color of a 'Hint' or a 'Message'. There two different things.

-- Comment posted by #Gravity Tech.

0
I must give you credit for stumping me for about 1 minute though lol. MessorAdmin 598 — 9y
0
Okay, thank you. JustGimmeDaBux 18 — 9y

Answer this question