Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by 5 years ago

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)

1
.Parent = [new parent] .Position = [new vector3 position] User#5423 17 — 5y
4
Maybe you should do some research before asking this question. User#25115 0 — 5y

2 answers

Log in to vote
1
Answered by 5 years ago

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)
0
thank WideSteal321 773 — 5y
Ad
Log in to vote
1
Answered by 5 years ago
cloned2.Parent = *parent here*
cloned2.Position = Vector3.new(pos x, pos y, pos z)

Answer this question