for i,v in pairs(game.Workspace:GetChildren()) do if v:FindFirstChildWhichIsA('Tool') then print('LOL') end end
its supposed to print 6 LOL cause theres 6 tools but its not doing anything
I also need help doing
Looking for values inside the tools of workspace
the Value is a IntValue but this also dosent seem to work
for i,v in pairs(game.Workspace:GetChildren()) do Find = v:FindFirstChildWhichIsA('Tool') if Find then Val = Find:FindFirstChild('Value') if Val then print(Val.Value) end end end
Right now you are looking through v to see if they are the parent to a tool. Take "FindFirstChildWhich" out of the script and it will work perfectly.