local ID = getUserIdFromUsername(PlrName) print(ID) local InsertService = game:GetService("InsertService") local Assests = InsertService:LoadAsset(ID) print(Assests) for _, child in pairs(Assests:GetChildren()) do script.Parent:LoadCharacterAppearance(child) end
Trying to get the players assest and insert into a dummy.
But i keep getting the error HTTP 403 (Forbidden) WHY?!!
Hello, fastlocks! I presume the problem you're having is due to the way InsertService functions. If you do not own an asset you can't insert it, thus the output "HTTP 403 (Forbidden)"
The best way to solve this is to add it to your account inventory, this way Roblox Studio allows the InsertService Function....
However, it is obvious you are attempting to get the player's assets and insert it into a dummy as you have told us.
Instead, I would suggest to just go into a player's character model located in Workspace and use the clone:() function on all accessories and clothes you would want to be moved to the dummy.
The players' userid is not an asset id, thus cannot be used in InsertService:LoadAsset. Use HumanoidDescription Instead.
local ID = getUserIdFromUsername(PlrName) local HumanoidDescription = game.Players:GetHumanoidDescriptionFromUserId(ID) -- get the description from the players' current character! script.Parent.Humanoid:ApplyDescription(HumanoidDescription) -- apply the description to the humanoid
Article to help: https://developer.roblox.com/en-us/articles/humanoiddescription-system Hope this helps, if this does, please mark this as a solution! Metatable out!