My 5 parts aren't appearing in workspace, could anyone help me out?

script: function generatePart(name) local part = Instance.new("Part") part.Name = "FarmingPart" part.BrickColor = Brickcolor.New("Really Red") part.Anchored = true part.Position = Vector3.new(0,10,0) part.Transparency = 0 part.Reflectance = 0.5 part.CanCollide = true part.Parent = workspace end

generatePart("Floor") generatePart("Walla") generatePart("Wallb") generatePart("Wallc") generatePart("Walld")

I'm a new lua scripter if you're wondering. Nothing came into output after I ran it too.

3 comments

0

Did you store these parts somewhere?

0

No, I didn't store these parts anywhere, I believe the script would just generate a new part in the workspace if that's how it works. The script is in the ServerScriptStorage though.

0

What's the name for in the function parameter?