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

Trying to make a tool that changes the Color and Material of the player, yet Its not working (?)

Hello! as the title says, I'm making a tool that changes the Color and Material however It appears to not change the color as well of the material, I am using :GetChildren

Also no errors appear In the output

Script:

local tool = script.Parent
local Player = tool.Parent
local PlayerBodyParts = Player:GetChildren()

tool.Equipped:Connect(function()
	for i,v in pairs(PlayerBodyParts) do
		PlayerBodyParts.BrickColor = BrickColor.new("Neon orange")
		PlayerBodyParts.Material = Enum.Material.Neon
		wait()
	end
	PlayerBodyParts.Torso.BrickColor = BrickColor.new("Neon orange")
end)

2 comments

1

keep this in mind: you made a table of all the players body objects, within that table are the parts that make the player BUT also the scripts, clothing items, and body colors. so you added a lot of items that cant be changed. try to only add the parts in the table by using a class function

0

What do you mean?

1 answer

hey you! have you ever heard of enes? if you are in trouble, better call enes!

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