|
| 27 May 2017 09:14 AM |
I have a rank player script,
and I want to add
if Player.Name = "Simply_Official" then TextLabel.TextColor3 = (255, 0, 0) end
or something like this ( I want to color my name in red )
for this
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(2602114) 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 end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 May 2017 09:21 AM |
local c3=Color3.new
if player.Name==game.Players:GetNameFromUserIdAsync(game.CreatorId) then TextLabel.TextColor3=c3(255/255,0/255,0/255) end |
|
|
| Report Abuse |
|
|
|
| 27 May 2017 09:32 AM |
I made this but I got an error.. im not sure where to place the script that you gave me theres also a frame for the textlabel if this is important ..
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(2602114) 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 local c3=Color3.new
if Player.Name==game.Players:GetNameFromUserIdAsync(game.CreatorId) then frame.TextLabel.TextColor3=c3(255/255,0/255,0/255) end name.Text = Player.Name role.Text = pRank end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 May 2017 09:44 AM |
Bump !!! Someone please help me ! I know I'm that stupid as I don't know how to change the color for a player but I really need someone to help me with this ! |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 27 May 2017 12:34 PM |
| After I did what the other guy said, the script didn't color my name and instead of rank and name tag is showed unknown name and unknown rank |
|
|
| Report Abuse |
|
|