Ok, so I've got a script that should create an infinite amount of bricks that are spaced by 5 studs each time, this works with basic parts but when i try to use models, (i.e insertservice) things start to break
Distance1 = 5 --The axes for Vector3
Distance2 = 0
Distance3 = 0
while true do
game:GetService("InsertService"):LoadAsset(167396124).Parent = game.Workspace -- Creates the model (game.Workspace should be ^^, forums :/)
Game.Workspace.Model.Name = ("Brick") --Declares model name
local Brick = Game.Workspace.Brick -- Declares variable brick
Brick.Position = Vector3.new(Distance1, Distance2, Distance3) -- breaks -here
print (Vector3.x) -- Returns nil for all
print (Vector3.y)
print (Vector3.z)
wait(1)
Distance1 = Distance1 + 5 -- Makes sure each brick is 5 studs away each time
end
|