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

I need help with my item filtering script, please help! is there a solution?

Asked by 4 years ago
print("Beginning")
local BA = script.Parent.AccessoriesEquipped:WaitForChild("Back")
local FA = script.Parent.AccessoriesEquipped:WaitForChild("Front")
local HA = script.Parent.AccessoriesEquipped:WaitForChild("Hat")
local FAA = script.Parent.AccessoriesEquipped:WaitForChild("Face")
local SA = script.Parent.AccessoriesEquipped:WaitForChild("Special")
local FEA = script.Parent.AccessoriesEquipped:WaitForChild("Feet")
local player = game.Players:WaitForChild(script.Parent.Name)
while true do
    if BA.Value == "" then

    else
        print("doof")
        local stuff = script.Parent.Accessories:GetChildren()
          for i,v in pairs(stuff) do
          if v.Name == BA.Value then
          v.Transparency = 0
          v.CanCollide = false
          else
          print("uwu")
    v:Destroy()
        end
end
wait(0.00000001)
end

i tried this, but nothing works! please help

0
plus the prints dont do anything mkhamster 58 — 4y
0
did you have a back accessoriesequipped value equipped? if yes then remove it and see if it works. Also put prints in the if BA.Value == "" then if statement. 123nabilben123 499 — 4y

Answer this question