Hello, I tried to make a method function for workspace to make a part in and put in "()" its name. What is wrong? It asks me in line 6 for an object literally for no reason I can think of.
** Workspace.Script:6: bad argument #3 to 'Workspace' (Object expected, got table)**
game.Workspace = {
MakePart = function(n)
local a = Instance.new("Part", game.Workspace)
a.Name = n
end
}
game.Workspace:MakePart("Explantation, anyone?")

1 comment
No, I mean, it should a function of workspace, like game.Workspace:FindFirstChild()