I'm just trying to create a part from a different part. I'm not sure what the problem is. Here is my script
--A Script in ServerScriptService
local WallThickness = 4
local WallHeight = 50
local Part = game.Workspace.Part
local CreatedPart = game.Workspace.Part:Clone()
CreatedPart.Size = Vector3.new(WallThickness, WallHeight, Part.Size.Z)
--Error on the line below this one
CreatedPart.CFrame = CFrame.new(Part.Position.X - ((Part.Size/2) + WallThickness), (CreatedPart.Size/2 + Part.Position.Y), Part.Position.Z)

2 comments
Could you paste the output line in the comments so we can help you further?
Sorry,just read this. Here it is: 19:34:18.039 - ServerScriptService.MasterScript.CompiledScripts:494: bad argument #2 to '?' (Vector3 expected, got number)