How do I make a decal so it's always a group's icon and when the icon changes it updates in new servers? I know there's one for player icons, but I don't know what the equivalent for groups is, sorry for the short question but it's a simple one that nobody seems to be answering on the discord.
COMMUNITY QUESTION
Changing a decal to a group icon? (SOLVED)
1 answer
You need to know some details about os.time.Which i will explain now.
In os.time,you can get the year,month,day,hour,minute and second.The real name of os.time is Unix Time.For example unix time is now is 1591474844 which is 23:21 in clock time.Here i will give you a basic code
local unixtime = os.time()
olddecal = "your decal id now"
newdecal = "your new/future/updated decal id"
local decal = game.Workspace --change this to your decal
unixtime.Changed:Connect(function()
print(unixtime)
if unixtime == 1591488000 then --which is 24:00 today
decal.Texture = newdecal --will change the decal if unix time is 1591488000 (06.07.2020 24:00 AM)
else
decal.Texture = olddecal --if unix time is not 1591488000 (06.07.2020 24:00 AM) then the decal is still the old one
end
end)
I will give you this website which you can convert time to unix time.
Hope this will helps!
Edit:This is like a live-event which will happen on all servers.And DONT FORGET TO CLICK GOOD ANSWER
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
What do you mean? I've searched and I can't find anything. I'll check the roblox dev wiki again.
Yeah, just looked but to no avail.
ok let me explain.Are you going to update the decal of the group?
No, I want to set a decal's image to be a group icon and always be that group's icon even if said icon (on the group side) changes.