Position cant be assigend to erorr

Hi, So i want to change the position of a model to the players model, And i tried using pivot but it keeps giving me the position cant be assigened error, Heres the script:

local character = game.Players.LocalPlayer.Character

local parent = script.Parent.arifgamer332

local CF1 = parent:GetPivot()

local CF2 = character:GetPivot()

wait(5)

CF1.Position = CF2.Position

its a local script

how can i fix this

try this

local character = game.Players.LocalPlayer.Character

local parent = script.Parent.arifgamer332

wait(5)
character:PivotTo(parent.PrimaryPart.CFrame)

--  you will now have to set a primary part for the model
1 Like

Yoo this works thanks, But i do have a question would this work with a loop and would it cause lag?

This would work in a loop, it might cause a little bit of lag, but not a noticeable amount.

1 Like

Alright thank you!

(30 letter limit)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.