How would i make a statue that auto updates the statue's appearance to the Top donator's appearance?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

Make a statue that auto updates statue with the outfit of top donator in the Top Donator Datastore

  1. What is the issue? Include screenshots / videos if possible!

I have been trying for some time, and still haven’t been able to understand how to make it

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve tried alot of things i could find, furthest i got was failing to view the datastore with print(i,v)

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local Datastore = game:GetService("DataStoreService"):GetDataStore("BoardData")
local Data = Datastore:GetAsync("Data")
local TD = game:GetService("DataStoreService"):GetOrderedDataStore("TopDonators")
for i,v in pairs(TD) do
	print(i,v)
end

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

3 Likes

OK, so use https://avatar.roblox.com/docs/#!/Avatar/get_v1_users_userId_currently_wearing to get a table of accessories they are wearing and use InsertService to get them in game and use the Humanoid equip accessory thing to put them on a dummy

I am currently using this model, it makes it easier, i just need a way to get the UserID from the top donator and put it on the model

https://www.roblox.com/library/5570278486/Auto-updating-statue-with-animations

Shouldnt your datastore already use UserIDs to store data? If not then they could loose Top Donator from a username change

1 Like

Thats what I thought, use their user ID.

Yes, i am using https://www.roblox.com/library/391248083/Donation-Board and it uses UserID’s, its just that i am new to DataStores and things like that, idk how to get the ID tho.

What i am trying to do is that it automatically updates the statue as soon as there is a new top donator.

Your Top-Donor thing should also store amount so just order the amount from least to greatest also dont overwrite the amount of money donated use UpdateAsync to add the amount donated

Is there an example script of how i would go about doing this? Like how do i access the Top Donator UserId in the data store?

you need to use a OrderedDataStore which i dont know how to code for,
Maybe use :GetCurrentPage() to return a table then use table.sort to sort through it