Putting an object into workspace at a position

The part already spawns in just not the position it spawns in at 0,0,0


	local pos = HRP.Position
	carrionM.Parent = workspace
		carrionM.Position = Vector3.new(pos)

(this is a 700 line script) so I am posting the bit of where it is

variable of the part:
local carrionM = ReplicatedStorage.Dinosaur.Body:FindFirstChild("CarrionM"):Clone()

Use the parts CFrame, not the position. Since the character is a model.

the HRP is of the charector the carrion is just a part

Since pos is already a Vector3, you can write:

carrionM.Position = pos
1 Like

700 lines is a lot, try to optimize that, put stuff into modules, writing long scripts is bad practice as they might loose redability

1 Like

thank you so much for fixing it! and I will keep that in mind

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.