Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does this not work?

Workspace.Part = part

I don't even know why but when I type this in and I have made sure a million times that Part is in Workspace, it still reads back that part is not a valid member of Workspace

2 answers

The problem with your script is, you didn't explain what part is.

part = game.Workspace.Part --Goes into workspace and finds "Part"

If you would like to insert a part into workspace, you would do this.

part = Instance.new("Part",workspace) --Inserts part into workspace
part.Anchored = true --Makes it anchored

5 comments

0

So I typed that in and it still doesn't work

0

What error did you get? Also, part has to be in workspace.

0

I know, and I was trying to create a tag for the object "Part"

0

Yes, Part Is in workspace and it says "Part is not a valid member of Workspace"

0

Is it a bug?

This discussion is preserved as it was. New answers, comments, and votes are closed.