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

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

Asked by 2 years ago

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)
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 bestshot123 38 — 2y
0
What do you mean? imnotaguest1121 362 — 2y

1 answer

Log in to vote
0
Answered by
enes223 327 Moderation Voter
2 years ago

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

Ad

Answer this question