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 10 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.

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

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

01while true do
02local h = Instance.new("Hint")
03h.Parent = game.Workspace
04h.Text = "Welcome to Paintball Warfare, created by JustGimmeDaBux" -- I excluded the green text.
05local.Color(Lime green, Really black)
06wait(8)
07h.Text = "Mapmakers will soon be needed! Start working on maps!"
08local.Color(Lime green, Really black)
09wait(8)
10h.Text = "The expected release date is 02/01/2015"
11local.Color(Lime green, Really black)
12wait(8)
13h.Text = "Have fun on Paintball Warfare!"
14local.Color(Lime green, Really black)
15end
16    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 — 10y

4 answers

Log in to vote
1
Answered by 10 years ago

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

01local Screen = Instance.new("ScreenGui")
02local Label = Instance.new("TextLabel",Screen)
03Label.Size = UDim2.new(1,0,.04,0) --Change Size to your liking,
04Label.TextColor3 = Color3.new(0,1,0) --Lime Green
05Label.BackgroundColor3 = BrickColor.Black().Color
06Label.BackgroundTransparency = .5
07Screen.Name = "Hint"
08Label.Text = "Welcome!"
09 
10--Give the Gui to who you want to.
11Game.Players.PlayerAdded:connect(function(Player)
12Screen:Clone().Parent = Player.PlayerGui
13end)
0
Thanks! JustGimmeDaBux 18 — 10y
0
Wait. Is that the script, because when I join the game as a user it doesn't show anything. JustGimmeDaBux 18 — 10y
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 — 10y
Ad
Log in to vote
1
Answered by 10 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 10 years ago

To add on to notsopwnedg's code:

01--Please note that this will not work if you have Filtering enabled
02 
03local Screen = Instance.new("ScreenGui")
04local Label = Instance.new("TextLabel",Screen)
05Label.Size = UDim2.new(1,0,.04,0) --Change Size to your liking,
06Label.TextColor3 = Color3.new(0,1,0) --Lime Green
07Label.BackgroundColor3 = BrickColor.Black().Color
08Label.BackgroundTransparency = .5
09Screen.Name = "Hint"
10Label.Text = "Welcome!"
11 
12--Give the Gui to who you want to.
13Game.Players.PlayerAdded:connect(function(Player)
14Player.CharacterAdded:connect(function(char)
15wait()
16Screen:Clone().Parent = Player:WaitForChild('PlayerGui');
17end)
Log in to vote
-1
Answered by 10 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 — 10y
0
Okay, thank you. JustGimmeDaBux 18 — 10y

Answer this question