Instance.new Needs Table?

I’ve tried placing this script in ServerScriptService:

local ThePart = Instance.new("Part",game.Workspace)

ThePart.Position = Vector3(1,1,1)
print("Working")

I don’t know why the output keeps telling me it needs a table. Is there something I’m missing? I thought this is right according to Instance.new. Thanks for the help, have a blessed day.

Missing .new after Vector3

Also, in the future, it’s easier for us if you copy and paste the whole error :slight_smile:

Ah thanks! Sorry, that was a really dumb mistake :laughing:

change it to be Vector3.new on the third line

also its a better habit/ more optimal if your code was written like

local ThePart = Instance.new(“Part”)
ThePart.Parent = game.Workspace

Yes, I just realized that. So basically, you want your variables placed so that it is easier to work with?

Please read this, you are using a bad coding practice for instance.new()

You know, I was just reading that as you were replying!