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

It thinks Backpack is empty but its Not And i Dont Know What to do :/ ??

Asked by 2 years ago
Edited 2 years ago
wait(3)
local Atk 
print("Hmmmmm")

game.Players.PlayerAdded:Connect(function(Plr)
    print("Donut's")
    print(Plr:WaitForChild("Backpack"):GetChildren())


    local Leadesrats = Plr:WaitForChild("Leaderstats")
    local AtkV = Leadesrats:WaitForChild("Attack")
    print("A")
    for i,v in pairs(Plr:WaitForChild("Backpack"):GetChildren()) do
        print("B")
        if v:GetAttribute("Type") == "Sword" then
            print("C")
            Atk = v.SwordScript.Atk.Value
            Atk = AtkV.Value
            print("I Eat "..Atk.." of Them")
        else
            print("I like D") 
        end     
    end

end)
print("No Donut Idiot")

Pwease Help :/

0
right, um fix the code block next time but is there any errors? AProgrammR 398 — 2y
0
no error DefinitelyNotTronix 19 — 2y

Answer this question