of     1   

noposts
#213445170Monday, April 03, 2017 1:05 PM GMT

it keeps saying nil even if i make if statements to check if it's nil or not here's an example: if workspace.coolpart ~= nil then print 'ok' end ok so "coolpart" is nil because i didn't put it in the workspace so i put an if statement to check if coolpart is not equal to nil/doesn't exist, but it keeps saying part is not in the workspace/nil even though i just put that statement there to check if it is or not. any help?
JarodOfOrbiter
#213445771Monday, April 03, 2017 1:18 PM GMT

Roblox has a weird way of doing it. If something in Workspace, Players, or anything else you can see in the browser doesn't exist, it errors instead. Try this: if workspace:FindFirstChild("coolpart") ~= nil then print 'ok' end
noposts
#213445851Monday, April 03, 2017 1:20 PM GMT

how could i be so dumb forgettng about :findfirstchild ernfdf thanku

    of     1