Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to copy a texture to every accessory on a player?

Need help on how when a player spawns in, a texture is cloned into each handle of the accessory.

1 answer

✓ Accepted answer

Make a script inside ServerScriptService and paste this:

Comments are there to help you

local id = "rbxassetid://1234" -- change "1234" to your id

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		repeat wait() until char:FindFirstChildWhichIsA("Accessory") -- waits until accessories have loaded in
		for i, v in pairs(char:GetChildren()) do -- loops through all the parts of the character
			if v:IsA("Accessory") then -- checks if v is an accessory
				if v:FindFirstChild("Handle") then -- checks if there is a handle
					v:FindFirstChild("Handle").TextureID = id -- sets the textureId to your id
				end
			end
		end
	end)
end)

Remember to change 1234 to your id, otherwise it wont work

2 comments

0

Amazing! I appreciate it.

0

No problem! :-)

This discussion is preserved as it was. New answers, comments, and votes are closed.