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

Recently i asked a question about an overhead nametag script that changes color, please help?

Asked by 4 years ago

When i use this script for the color changing nametag

local plr = game.Players.LocalPlayer
local char = plr.Character
local text = char:WaitForChild("Head").NameTag.UpperText -- You may need to change it

script.Parent.MouseButton1Click:Connect(function()
    game.ReplicatedStorage.NameTag.UpperText.TextColor3 = Color3.fromRGB(202, 192, 255)
    text.TextColor3 = Color3.fromRGB(202, 192, 255)
    print("Heh")
end)

This works, But only in local scripts, But i want it to work for others to see it visible. Please Help me with this

0
Other people to see it visible TeaWithMee 76 — 4y

3 answers

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

Not sure, but looking at my developers script and scripts from people such as RoScripter it looks like this is a way to do it. I am not sure. Script;

local Color = Color3.new(math.random(), math.random(), math.random())

0
thats the way im doing it but a different way to format it, Like my Color3.FromRGB(202, 192, 255) is the same as that TeaWithMee 76 — 4y
0
you could do maddysIife 0 — 4y
0
rainbow = Color3.fromRGB(202,192,255) wait (5) Color3.fromRGB etc I am not sure. maddysIife 0 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

You can try using a Remote Event to bring the Local Player into a normal script so the color updates for all players. If the issue is that the nametag does not appear for all players let me know and I'll try and help you with that.

0
Im fairly new to scripting, Can you please give me an example with this :), Im not so sure how to set up remote events, It would be nice to see an example TeaWithMee 76 — 4y
0
https://developer.roblox.com/en-us/articles/Remote-Functions-and-Events Read this article here, also be sure to check out a few videos about them to clarify it. Good luck! Im kinda new too lol :) pokemine1o9 44 — 4y
Log in to vote
0
Answered by 4 years ago

This is in a local script so it won't be visible to other players. Use an event or you can create the text on spawn for certain people or all people, then use a server script inside of it to change the colors and edit it as you wish.

Answer this question