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

How do you make it so when says /newcolor they get a new ChatColor?

Asked by 10 years ago

Ive tried to get it but its really hard to me. can you help me?

1 answer

Log in to vote
1
Answered by 10 years ago

A simple way to do it is create your own chat system - which is not to hard. I have implemented something similar so here is an idea:

local player = script.Parent.Parent.Parent
functions = {["/new"] = function()
data = game:GetService("DataStoreService"):GetGlobalDataStore()
valid = {["blue"] = function(data) 
    data:SetAsync(player.Name..": chat_color",  {26, 0, 132})
end}
-- As an example
end}

Then when updating you just get the player's color [not at hard], assign the RGB values then update your chat.

Ad

Answer this question