I've been doodling around with my new scripting skills lol and I tried making a parameter with vector 3 I don't know how to do it and cant find any tutorials please help me I would appreciate it when I click play the parts don't show up or spawn in.
Here's the script
function generatePart(name, position) local myPart = Instance.new("Part") myPart.Position = Vector3.new(position) myPart.Anchored = true myPart.BrickColor = BrickColor.new("Light pink") myPart.Transparency = 0.5 myPart.Name = name myPart.Parent = game.Workspace -- more efficient this way end
generatePart(1, 0,25,0) generatePart(2, 0,35,0) generatePart(3, 0,45,0) generatePart(4, 0,55,0)

1 comment
local position = Vector3.new(X, Y, Z) generatePart("name", position)