#not changing children position

1 messages · Page 1 of 1 (latest)

raven thistle
#

when i apply a position to a part in roblox studio the children dont follow it

restive carbon
#

are the parts welded

sly rapids
#

weld

visual mica
#

weld

raven thistle
#

it didn’t work

visual mica
#

weld it again

swift ember
#

set cframe

#

no position

#

model it

#

set the part to the primary part

visual mica
#

good point

swift ember
#

model:setprimarypartCFrame

visual mica
#

:PivotTo()

swift ember
#

whats the new?

#

pivot to

#

good point

visual mica
#

or just PrimaryPart.CFrame = ...

raven thistle
#

ill try welding it again maybe it will work

swift ember
#

model it

raven thistle
raven thistle
visual mica
visual mica
#
  1. create a model
  2. put everything in the model
  3. set primarypart to your part
  4. weld everything to that part
raven thistle
#

welding it didnt work

visual mica
#

use easyweld or smth

visual mica
raven thistle
#

wait

glad pendant
#

use ```lua
part.CFrame = CFrame.new(newPosition)

#

if you really must use the Position , than move the children manually

#

and you can also use models, put the part and children in a model and use ```lua
model:SetPrimaryPartCFrame()

glad pendant
raven thistle
glad pendant
raven thistle
#

thats a good question

glad pendant
#

i know , cause most of the time there is errors

raven thistle
#

the children stay in the position that was assigned in roblox studio and not the code

raven thistle
#

there are no errors

visual mica
raven thistle
#

neither worked

glad pendant
#

hmmmm

visual mica
#

it should be off

glad pendant
#

set a primary part

model.PrimaryPart = model."SomeMainPart"
model:PivotTo(CFrame.new(newPosition))

raven thistle
#

okay

glad pendant
#

and as cash said , unanchor all children

raven thistle
#

wait it wasnt a model when i was trying it btw

#

is that a problem?

#

bc when it is a model the script doesnt want to clone it from the replicated storage

glad pendant
#

if you set a primary part and unanchor it will for sure work

#

also yes

#

if its not a model , than PivotTo() wont work

raven thistle
#

but it wont clone

glad pendant
#

well than , for parts and not models use
part.CFrame = CFrame.new(newPosition)

#

it will move the welded children

#

but still the best way is making a model

raven thistle
#

ill try it

glad pendant
#

its not hard to make a model

#

@visual mica we really should find a builder and make a game and be richey

raven thistle
glad pendant
elfin pelicanBOT
#

studio** You are now Level 5! **studio

glad pendant
#

after welding the parts use
parentPart.CFrame = CFrame.new(newPosition)

visual mica
#

basically incremental

#

but my brain is too dumb