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

Getting the Accessory ID from the Accessory?

Asked by 7 years ago

I'm trying to find a way on how to get a hat ID from an accessory so that I can use the InsertService to then insert the hat afterwards. Here is a draft on what the script would look like:

-- Get player's accessories in a for loop (in character)
-- Get the accessory ID
-- InsertService to insert the hat back into the player.

Any way to do this? I'm reading on the wiki that Accessories do NOT have an ID slot to get the ID.

Thanks!

NO, I DO NOT WANT A SCRIPT WRITING, I JUST WANT A WAY TO GET AN ID FROM THE ACCESSORY OR SIMILAR.

0
This doesn't sound possible as Roblox seems to keep asset Id and stuff separate from the actual object. Why don't you just clone their accessory and store it? cabbler 1942 — 7y
0
Wait, you can store Instances in Datastores?!?! WelpNathan 307 — 7y
0
You can't save objects in datastores: Values can be numbers, booleans, strings, or Lua tables. However, values cannot be ROBLOX types like Vector3, Instance, or Part. MrLonely1221 701 — 7y
0
You can still save them if the Datastore is encoded into JSON? WelpNathan 307 — 7y

Answer this question