Make parts face just one way

so i tried to make a union teleport to humanoid root part and then it get remove and then other union teleports to same location as the first union and then it get destroyed too… the thing is that both unions don’t face same way and it makes it look weird…

so is there a way to make both unions face same direction?

my script:

game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function()
Player.Character.Humanoid.Died:connect(function()
local char = Player.Character
local ds = game.ReplicatedStorage.Death.Soull
local cs = game.ReplicatedStorage.Death.HalfHeart
local f = Instance.new("ParticleEmitter")
ds:SetPrimaryPartCFrame(CFrame.new(char.HumanoidRootPart.Position.X,char.HumanoidRootPart.Position.Y,char.HumanoidRootPart.Position.Z))
cs:SetPrimaryPartCFrame(CFrame.new(ds.PrimaryPart.Position.X,ds.PrimaryPart.Position.Y,ds.PrimaryPart.Position.Z))
for _,Part in next, Player.Character:children() do
  if Part:IsA('BasePart') or Part:IsA('Accessory') or Part:IsA('Model') or Part:IsA('Tool') or Part:IsA('Hat') then
    Part:Destroy()
  end
end
  local d = game.ReplicatedStorage.Death.Soull:Clone()
  if Player.SOULS.Determination.Value == true then
	d.Union.Color = Color3.fromRGB(255,0,0)
  elseif Player.SOULS.Perseverance.Value == true then
	d.Union.Color = Color3.fromRGB(129, 0, 194)
  elseif Player.SOULS.BasicSoul.Value == true then
	d.Union.Color = Color3.fromRGB(255,255,255)
  elseif Player.SOULS.Justice.Value == true then
	d.Union.Color = Color3.fromRGB(255,255,0)
  elseif Player.SOULS.Kindness.Value == true then
	d.Union.Color = Color3.fromRGB(0,255,0)
  elseif Player.SOULS.Integrity.Value == true then
	d.Union.Color = Color3.fromRGB(0,0,255)
  elseif Player.SOULS.Patience.Value == true then
	d.Union.Color = Color3.fromRGB(0,255,255)
  elseif Player.SOULS.Bravery.Value == true then
	d.Union.Color = Color3.fromRGB(170, 85, 0)
  end
  wait()
  d.Parent = workspace
  wait(2)
  d:Destroy()
  local c = game.ReplicatedStorage.Death.HalfHeart:Clone()
  if Player.SOULS.Determination.Value == true then
	c.Union.Color = Color3.fromRGB(255,0,0)
	f.Color = ColorSequence.new(Color3.fromRGB(255,0,0))
  elseif Player.SOULS.Perseverance.Value == true then
	c.Union.Color = Color3.fromRGB(129, 0, 194)
	f.Color = ColorSequence.new(Color3.fromRGB(129, 0, 194))
  elseif Player.SOULS.BasicSoul.Value == true then
	c.Union.Color = Color3.fromRGB(255,255,255)
	f.Color = ColorSequence.new(Color3.fromRGB(255,255,255))
  elseif Player.SOULS.Justice.Value == true then
	c.Union.Color = Color3.fromRGB(255,255,0)
	f.Color = ColorSequence.new(Color3.fromRGB(255,255,0))
  elseif Player.SOULS.Kindness.Value == true then
	c.Union.Color = Color3.fromRGB(0,255,0)
	f.Color = ColorSequence.new(Color3.fromRGB(0,255,0))
  elseif Player.SOULS.Integrity.Value == true then
	c.Union.Color = Color3.fromRGB(0,0,255)
	f.Color = ColorSequence.new(Color3.fromRGB(0,0,255))
  elseif Player.SOULS.Patience.Value == true then
	c.Union.Color = Color3.fromRGB(0,255,255)
	f.Color = ColorSequence.new(Color3.fromRGB(0,255,255))
  elseif Player.SOULS.Bravery.Value == true then
	c.Union.Color = Color3.fromRGB(170, 85, 0)
	f.Color = ColorSequence.new(Color3.fromRGB(255,50,0))
  end
  wait()
  c.Parent = workspace
  wait(2)
  f.Parent = c.Union
  wait(0.2)
  c.Union.Transparency = 1
  wait(1)
  c:Destroy()
end)
end)
end)
1 Like

when you parent the unions can you set their orientation?

i think you do, but how i know to what exactly? sorry for the late reply btw

when you clone the unions you could do something like
part.Orientation = Vector3.new(0,your rotation,0)
so that they both are set to the same orientation

or you could rotate the original models to match up (if they dont already)

Just a reminder in the future that Code Review is for improving already working code or receiving feedback on code. This is specified in the category guidelines. If you need help fixing a piece of code or debugging something, your thread belongs in Scripting Support.

Even though your code is working, you’re having trouble debugging something a certain part of your code, which is that some of the parts in your assembly are wrongly aligned. This makes it a Scripting Support topic rather than a Code Review topic.

Please make sure you understand the use of each Development Support category to determine an appropriate place for your thread, since miscategorisation clutters things up. You can move your thread by clicking the pencil beside the title. :slightly_smiling_face: