Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I change the parent and the position in a script?

I don't know how to do this

here's the script:

 local cloned = item:Clone()
  local cloned2 = item:Clone()
---Here's were it should be


 end
end)

2 comments

1

.Parent = [new parent] .Position = [new vector3 position]

4

Maybe you should do some research before asking this question.

2 answers

✓ Accepted answer

To change the parent you need to set it by saying cloned.Parent = and some place. To change the position Vector3.new should work.

Script:

 local cloned = item:Clone()
 local cloned2 = item:Clone()

cloned.Parent = game.--where u want it
cloned2.Parent = game.--where u want it

cloned.Position = Vector3.new(x, y, z) --position
cloned2.Position = Vector3.new(x, y,  z) --position


 end
end)

1 comment

0

thank

cloned2.Parent = *parent here*
cloned2.Position = Vector3.new(pos x, pos y, pos z)

This discussion is preserved as it was. New answers, comments, and votes are closed.