So I have a script that changes the parts to neon if they aren't (sorta broken as is) I was wonder, how can I only change the parts with the name "Colorfull"
function onClicked()
local GetBoat = game.Players.LocalPlayer.Character
local colorfulls = GetBoat.NormalBoat:GetChildren("Colorfull")
local boot = GetBoat.NormalBoat
if boot.Colorfull.Material == "Neon" then
print("If2done")
for i = 1, #colorfulls do
colorfulls[i].Material = "Plastic"
end
script.Parent.booton.TextColor3 = Color3.new(255,255,255)
else
for i = 1, #colorfulls do
colorfulls[i].Material = "Neon"
end
script.Parent.booton.TextColor3 = Color3.new(255,0,0)
end
end
script.Parent.booton.MouseButton1Click:connect(onClicked)

2 comments
how would this fit into the script? (Never used iPairs before)
If you use the search bar you'd find a good answer.