local Brick = Instance.new("Part") Brick.Parent = game.Workspace while true do Brick.Position.X = game.Workspace.Player.Torso.X Brick.Position.Y = game.Workspace.Player.Torso.Y Brick.Position.Z = game.Workspace.Player.Torso.Z
You cannot edit values of Position. You can just edit Position itself.
And you forgot to say thatTorso.Position.X
and not Torso.X
local Brick = Instance.new("Part") Brick.Parent = game.Workspace while true do Brick.Position = game.Workspace.Player.Torso.Position -- you forgot to say Position. X = X, Y = Y, Z = Z
As spongocard said, it wont work if you dont put an end
and an wait()
:
local Brick = Instance.new("Part") Brick.Parent = game.Workspace while true do Brick.Position = game.Workspace.Player.Torso.Position -- you forgot to say Position. X = X, Y = Y, Z = Z wait() end