Hey! I'm fairly new to ROBLOX Lua and this website too. Furthermore, I recently created a script that would change the position of a newly created object called "part". There is no actual object called "part" in my workspace. What I'm trying to do is create a part and change its location. So I came up with this...
part = Instance.new("Part", game.Workspace)
part = script.Parent
part.Position = Vector3.new(27, 0.5, -3)
However, when I run the script, the output says: 07:04:33.066 - Position is not a valid member of Workspace 07:04:33.067 - Stack Begin 07:04:33.068 - Script 'Workspace.Script', Line 3 07:04:33.069 - Stack End
Please Help...

4 comments
What's the difference between "local variables" and regular variables. In what instances are they used in, and what difference does it make? Thanks!
a local variable can only be accessed inside its scope not outside of it. a normal one (global) can be accessed anywhere in the script
https://developer.roblox.com/articles/Scope
@T0BIUCHIHAA https://scriptinghelpers.org/questions/6/local-in-front-of-variables