#Part wont move correctly
1 messages · Page 1 of 1 (latest)
are you sure that what ever you are moving is inside the work space at the end of the code execution?
dark mode pls
the little green thing in the pic is what im moving
just dont help
instea of using set primary part cframe use the :PivotTo() element
also before you change that I want you to use your original code again
this time I want you to click the plant using your select tool at the top and seeing where the primary part is
its possible its moving but the model isn't
and then use :PivotTo()
PosPart is the part. I had it so stage 1 becomes a child of the pot interacted with to make the position easier to find but no luck.
** You are now Level 3! **
Here is the output
says its moved to the right position but the model stays in the same area
here is a screenshot of output instead
hmmm this is really strange,
check the pot to see if the plant clone is actually inside of it
thats what the other screenshot is
yeah sorry my bad
nw
can I get a video of you interacting with it?
yep lemme get my recording rq
the position where its going currently is the position the pot is in when i drag it out of replicatedstorage
ohhhh so you manually take it out of replicated storage when you start the game?
ok thats a big hint
nvm mb
like you just automattically make the pots parented under workspace?
nooo noo
im sorry I got it
nw lol i appreciate you taking time to help
mind giving me the script in a text doccument?
how do i send that?
actually dont do that I seen enough in the screen shot
the 2 screenshots are the full script
ok I figured out your issue
target position is a vector 3 not a cframe
but you are using cframe to set it to the target position
which might be causing the problem
local targetPos = cloned PlantAnchor. CFrame + CFrame.new(0, cloned PlantAnchor.Size.Y / 2+ posPart.Size.Y/ 2, 0)
try that
alrighty
broke the script
14:49:33.790 Workspace.Small Soiled Pot.Script:42: invalid argument #2 (Vector3 expected, got CFrame) - Server - Script:42
which line is that? is it the one I changed or the one that actually changes the position itself
line you changed
thank you i appreciate it
I got good news
this should fix it
I hope
local targetPos = CFrame.new(clonedPlantAnchor.Position.X, ((clonedPlantAnchor.Position.Y) + (cloned PlantAnchor.Size.Y / 2+ posPart.Size.Y/ 2)), clonedPlantAnchor.Position.Z) ```
Ill try it thank
having a problem with this line now
clone:SetPrimaryPartCFrame(CFrame.new(targetPos))
15:06:19.679 Workspace.Small Soiled Pot.Script:46: invalid argument #1 to 'new' (Vector3 expected, got CFrame) - Server - Script:46
alright
** You are now Level 4! **
Its still wont move from the position 😭
I feel that before I posted this i was at this one part for easily over 8 hours
ok maybe try this before you move it, parent it to the workspace and after its moved parent it to the pot
Only reason I parented to pot was so it could find the PlantAnchor in the pot easier
tried it in workspace before that and no luck
well its just a part so here is an idea just set the part cframe directly
instead of using primary part
Clone.CFrame = targetPos
lemme try rq
Cframe is not a valid member of model
i also tried Clone.PosPart.Cframe and got the same thing
clone shouldnt be a model it should be a part?
ohhhhhhhhhhhhhhh
I see,
ngl sorry I was confused I thought you were just moving the part not an entire model
for better reference
nw
yeah then the cframe part wont work scrap that idea
alr
ill try
its back to staying in the same position 😭
roblox is so broken that should have worked
should i try redoing the stage 1 and delete original?
nahh
what if you refrence the part you want to move specifically
and then just move that
thats what i was doing when i did clone.PosPart
I dont see that line in your script screen shots
and you shouldnt clone the part anyways
here
wdym
like you shouldnt clone a part of the clne to change it
im not cloning a clone?
oh sorry I think im dyslexic sometimes
i mistaked "." for ":" sorry
which dosent even make sense
your good lol i do the same thing sometimes
got any other ideas? nw if not i appreciate your help already
nooo im sorrry
thank anyways
ay I think i found a clue
If u can jus lmk what u think
It looks like for whatever reason the plantanchor is moving to the PosPart