How to add to a position when using instance.new?
Asked by
4 years ago Edited 4 years ago
I'm trying to make a function which when a player joins it creates a new part in a different position, I want them to separate by adding to the position. Here is the code I used:
`game.Players.PlayerAdded:Connect(function(newbuildingspot)
1 | local NewBuildingSpot = Instance.new( "Part" ) |
2 | NewBuildingSpot.Parent = game.BuildingSpotFolder |
3 | NewBuildingSpot.Size( 3 , 5 , 50 ) |
4 | NewBuildingSpot.BrickColor = BrickColor.new( "Beige" ) |
5 | NewBuildingSpot.Position(+ 0 ,+ 12 ,+ 15 ) ` |
end)
Mainly concerned on the last one and wanted I hope that someone with more experience can point out my error/s.