create part using script roblox code example
Example: How to create a part with script in roblox srudio
local BuildPart = Instance.new("Part",game.Workspace) --Directory of The Part
BuildPart.Size = Vector3.new(50,50,50) --The Size of the Part
BuildPart.Position = Vector3.new(-37, -0.5, -90) --The Position of The Part
BuildPart.Anchored = true --Anchores The Part