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

Can you help with Text Labels and Making Certain Users Change what it says and color of it? [closed]

Asked by 3 years ago

How do I make a text label change color and The text to the owner if there's a certain user? I want this because I want to make an owner tag and stuff.

0
https://developer.roblox.com/en-us/api-reference/class/TextLabel look at the properties, and you can click on the specific one to go to a page that explains how to modify them User#32819 0 — 3y

Closed as Not Constructive by JesseSong

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

2 answers

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

I'm assuming it is a BillboardGUI that you are using for the tag. Put this code in a local script. Set the GUI's text to nothing preferably. You'll have to fiddle around with the code and properties for sure but you're probably looking for something like:

local plr = game.Players.LocalPlayer -- making sure it will be assigned locally

local userID = 123456 -- every player has an ID assigned to your account 

local Gui  = script.Parent -- the BillboardGUI which the text will be in 

if plr.UserId == userID then -- checks what the players userID is

    Gui.Text = Owner -- change to what ever the tag should say (if not working then put the text in brackets)

end

The local script should be in the BillboardGUI. Go onto your profile link and find the number in there. For example* roblox.com/users/123456/.* I would recommend reading the code and understanding it, as you'll learn it. I'm not the best coder, and if this doesn't work (probably will work), there is a model with a lot of customizability. Hope I helped!

Ad
Log in to vote
0
Answered by 3 years ago

I got it!