#Why does my model move to the wrong position when?

86 messages · Page 1 of 1 (latest)

slow leafBOT
#

studio** You are now Level 2! **studio

tulip vigil
#

@severe cape

#

you got some videos?

#

the code is right

#

make sure u checked

severe cape
#

Yes I can record the testing if youd like

tulip vigil
#

sure

#

send here

#

send before and after position

#

send the anchorposition

#

@severe cape

#

LE ME TRY

#

i have experienced with that problem too

#

is it a model.

severe cape
#

No ai could fix this for me

#

Yes

#

It is a model

tulip vigil
#

wait.

severe cape
#

It's confuzzling me

tulip vigil
#

lets change the move to

#
local function openAvacadoDrawer()
    local Position = Instance.new("CFrameValue")
Position.Value.Position = Vector.new(28.036, 4.099, -21.565)
    if rightDoorOpen.Value == true then
        if leftDoorOpen.Value == true then
            game.Workspace.Fridge.VegetablesFridgeCompartment:MoveTo(Position)
        else 
            print("Left door isn't open")
        end
    else 
        print("Right door isn't open")
    end
end

game.Workspace.Fridge.VegetablesFridgeCompartment.Container.OpenProxy.Triggered:Connect(openAvacadoDrawer)```
#

there ya go

#

there ya go

#

@severe cape

severe cape
#

Ill try it

#

Its not working still its saying "Position cannot be assigned to"

tulip vigil
#

hey

#

Is VegetablesFridgeCompartment is a part

#

or model.

severe cape
#

Model

tulip vigil
#

let me see your workspace

slow leafBOT
#

studio** You are now Level 3! **studio

tulip vigil
#

let me try

#

fr i dont see anything wrong

#

try put your script

#

@severe cape

#

@severe cape

#

I figured out the problem

#

I see....

#

@severe cape

#

Hey so..

#

Model and part.

severe cape
#

Wdym

tulip vigil
#

uh

#

k let me screenshot

#

model have its own position

#

haha

#

@severe cape You know what i mean?

#

you move the "Model"

#

not the "part"

severe cape
#

Um

tulip vigil
#

So lets say a model position is

#

0,20,0

severe cape
#

I don't understand

#

Yes

tulip vigil
#

and the model have a part

severe cape
#

Yes

tulip vigil
#

the part position is 0,0,0

severe cape
#

OHHHH

#

Wait let me try that

tulip vigil
#

so if you move the model to 20,0,0

#

the part become 20,-20,0

#

ez

severe cape
#

No that still doesnt work

#

No matter what I change the value to it always goes to the same spot

tulip vigil
#

no i mean...

severe cape
#

I know what you mean but there's multiple parts in the model

tulip vigil
#

give me the VegetableFridgeCompartmen

#

position

#

experiment with that .

#

change the value

#

I cant teach u

#

u need experience

severe cape
#

I did but it goes to the same spot

#

I was experimenting, no matter what the value is it goes to the same spot

#

And I do have experience but ive never come across an issue like this so idk what to do

tulip vigil
#

run the script

#

check the model position

#

before and after

#

figure out why it dont move like what you want.

severe cape
#

I have been figuring it out for two days and I'm kinda uh

#

lost

tulip vigil
#

im off

#

gtg

severe cape
#

At least we tried