script.Parent.ChildAdded:Connect(function(child)
task.wait(1)
child.PrimaryPart:MoveTo(script.Parent.Position)
end)
YES< IVE LOOKED AT DEVFORUM
Im tired of peopel saying “Look at devforum”. i have doen that.
Please jsut help me with this issue
Yes, the model has a primary part.
Yes, ive tried pivotto and moveto
there are no errors
2 Likes
I regret to inform you that moveto does not work on instances that are not a humanoid
1 Like
so i use pivot to? ive already tried that and it didnt work either
1 Like
pivet to works on a model not a part
1 Like
The thingy im tryna move is a model
1 Like
yeah so use Model:PivetTo(position) instead of Model.PrimaryPart
1 Like
HpacAm
(Bobo)
May 25, 2024, 2:43am
#7
i think if it haves a humanoid then you should use MoveTo on the humanoid of the model but if you want to move the primarypart then i dont know
1 Like
Just tried it, no errors, but didnt work
1 Like
Try:
child.PrimaryPart.CFrame = script.Parent.Position
or
child.PrimaryPart.Position= script.Parent.Position
or
child:PivotTo(CFrame.new(script.Parent.Position))
If none work, could you add a print into the ChildAdded event? Just to make sure the child added event is actually working
the event is not firing…
char limit
Right… are you calling the event on the right parent?
yea i am doing that
char limit
Can you show me where the script is and where the new parts you add are going?
script is in a part in workspace
new models are going into the part
Can you put scripts on the outside of the event? To check that the script itself is running.
i can yes
chqr limitttttttttttttttt
try to pivotTo a cframe instead vector3
forgot to say, the event is not firing when child is added
did you check to see if any child are added,or if script is disable
yes everything should be working