FindFirstChild is not a valid member of workspace error for no reason?
I was looking at a Region3 roblox scripting tutorial and when i was tryping the script i finished it then i clicked play it show the error of "FindFirstChild is not a valid member of workspace".
Here is my script
01 | local region = Region 3. new(Vector 3. new( 5 , 0 , 5 ), Vector 3. new( 15 , 15 , 15 )) |
03 | local part = Instance.new( "Part" ) |
05 | part.Size = region.Size |
06 | part.Parent = game.Workspace |
07 | part.CanCollide = false |
08 | part.Transparency = 0.9 |
13 | local thingsinRegion = workspace:FindPartsInRegion 3 (region, part, 1000 ) |
14 | for i, part in pairs (thingsinRegion) do |
15 | if part.Parent:findFirstchild( "Humanoid" ) ~ = nil then |
16 | print ( "Player found in the region" ) |
17 | local playername = part.Parent.Name |