Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Model.Position=Vector3.new is not working, but clone does?

Asked by
MEWTLC 0
3 years ago
Edited 3 years ago

it clones the taco but it isnt set int he position i tried to set it in Error: Position is not a valid member of tool

script.Parent.ClickDetector.MouseClick:Connect(function()
    script.Parent.Size=Vector3.new(2, 0.20, 2)
    delay(0.5,function() script.Parent.Size=Vector3.new(2, 0.49, 2)
    end)

    local tacoh = game.Workspace.Taco:Clone()
    tacoh.Parent=game.Workspace
    tacoh.Position=Vector3.new(math.random(-100,100),100,math.random(-100,100))

end)
0
Model doesnt have a Position property, if you want to move a model either weld everything to a part and move that part, everything other then that part must be unachored or move each part inside that model indiviually VerdommeMan 1479 — 3y
0
Models don't have a position property. Use :SetPrimaryPartCFrame() instead. marfit 104 — 3y

1 answer

Log in to vote
1
Answered by
marfit 104
3 years ago

Models don't have a position property. Use :SetPrimaryPartCFrame() instead.

Ad

Answer this question