Alright, I made a mistake and placed the wrong objects in the workspace from my models, I soon realised after placing many of the blocks, I thought I could try and use a string to make it dissapear, note: I have three objects inside of it Humanoid, SelectionBox & Pointlight
first off I tried
and after that I changed
FindFirstChildOfClass and it still never worked, If anyone could tell me why & what the correct usage is that would be a great help!
Use a loop instead:
local children = game.Workspace:GetDescendants() for _,p in pairs(children) do if p.Name == "Humanoid" or "SelectionBox" or "Pointlight" then p:Destroy() end end
Like the commentators said, FindFirstChild() takes a string and boolean parameter, not three string parameters.