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

2 comments
tools might have not loaded in yet
use if v:IsA("Tool") then ... end