menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
How do I locate a part in workspace with a specific property
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
How do I locate a part in workspace with a specific property
y1p
Join Date: 2013-05-05
Post Count: 350
#218176727
Sunday, June 04, 2017 10:30 PM GMT
How do I find parts in workspace with say a Position.Y value of 0?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
robloxman303030
Join Date: 2012-10-24
Post Count: 171
#218177340
Sunday, June 04, 2017 10:38 PM GMT
for i,v in pairs(workspace:GetChildren()) do if v:IsA("Part") then if v.Position.Y==0 then print("found") end end end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
hoemando
Join Date: 2013-09-07
Post Count: 110
#218177360
Sunday, June 04, 2017 10:38 PM GMT
for _, object in pairs (game.Workspace:GetChildren()) do if object.Position.Y == 0 then --whatever you want to do with it-- end end idk if this works but give it a shot
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
hoemando
Join Date: 2013-09-07
Post Count: 110
#218177425
Sunday, June 04, 2017 10:39 PM GMT
robloxman got it
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right