This is the code I wrote
brick=Instance.new("Part")
brick.Anchored=true
brick=BrickColor.new("Magenta")
brick=Vector3.new(0,5,0)
brick.Parent = workspace
Line 5 is assigning the variable brick a parent as the Workspace within roblox studio but I get the error that "Parent cannot be assigned to" I don't understand, line 5 works on its own but not after assigning properties.
This is the code I wrote
brick=Instance.new("Part")
brick.Anchored=true
brick=BrickColor.new("Magenta")
brick=Vector3.new(0,5,0)
brick.Parent = workspace
Line 5 is assigning the variable brick a parent as the Workspace within roblox studio but I get the error that "Parent cannot be assigned to" I don't understand, line 5 works on its own but not after assigning properties.
This is the code I wrote
brick=Instance.new("Part")
brick.Anchored=true
brick=BrickColor.new("Magenta")
brick=Vector3.new(0,5,0)
brick.Parent = workspace
Line 5 is assigning the variable brick a parent as the Workspace within roblox studio but I get the error that "Parent cannot be assigned to" I don't understand, line 5 works on its own but not after assigning properties.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.