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

How Do I Change The Colour Of My Robloxian VIA Lua Script Builders Script?

Asked by 10 years ago

Help Please I Would Like This ASAP if possible. So far i have this ::

game:GetService("InsertService"):LoadAsset(160189871):children()[1].Parent = game.Players.LocalPlayer.Backpack

(ignore part on top)

if game.Players:findFirstChild("mysticalmonster1234") then script.Parent.Parent.Character["Right Leg"].BrickColor = BrickColor.new(26) script.Parent.Parent.Character["Body Colors"].RightLegColor = BrickColor.new(26) end if game.Players:findFirstChild("mysticalmonster1234") then script.Parent.Parent.Character["Left Leg"].BrickColor = BrickColor.new(26) script.Parent.Parent.Character["Body Colors"].LeftLegColor = BrickColor.new(26) end if game.Players:findFirstChild("mysticalmonster1234") then script.Parent.Parent.Character["Right Arm"].BrickColor = BrickColor.new(26) script.Parent.Parent.Character["Body Colors"].RightArmColor = BrickColor.new(26) end if game.Players:findFirstChild("mysticalmonster1234") then script.Parent.Parent.Character["Left Arm"].BrickColor = BrickColor.new(26) script.Parent.Parent.Character["Body Colors"].LeftArmColor = BrickColor.new(26) end if game.Players:findFirstChild("mysticalmonster1234") then script.Parent.Parent.Character["Torso"].BrickColor = BrickColor.new(26) script.Parent.Parent.Character["Body Colors"].TorsoColor = BrickColor.new(26) end if game.Players:findFirstChild("mysticalmonster1234") then script.Parent.Parent.Character["Head"].BrickColor = BrickColor.new(26) script.Parent.Parent.Character["Body Colors"].HeadColor = BrickColor.new(26) end

But it just doesnt work in my script

1 answer

Log in to vote
0
Answered by 10 years ago

This should work. Tell me if it doesn't and I will make it work.

Guy = game.Players.mysticalmonster1234.Character:GetChildren()
for i = 1, #Guy do
    if Guy[i].className == "Part" then
        Guy[i].BrickColor = BrickColor.new(26)
    end
end
0
Thanks! it works but i have a problem can u make it so it takes off all my clothes and hats to? mysticalmonster1234 0 — 10y
0
I'm not exactly sure how to do that one, but if you could up vote me, that'd be nice c: jaytheidiot 60 — 10y
Ad

Answer this question