menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
Nil
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Nil
TheBeastSword
Join Date: 2011-10-28
Post Count: 889
#208408107
Saturday, January 28, 2017 4:30 PM GMT
If I have a part that I want to detect if it is nil or not, how would I do it? -Thanks
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
chimmihc
Join Date: 2014-09-01
Post Count: 17143
#208409403
Saturday, January 28, 2017 4:53 PM GMT
Part = nil print(Part == nil) --> true Part = 5 print(Part == nil) --> false
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
LuluPls
Join Date: 2010-08-23
Post Count: 1221
#208409647
Saturday, January 28, 2017 4:57 PM GMT
if game.Workspace:FindFirstChild("PartName") then -- what happens if it exists else --what happens if it doesn't 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
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right