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…
https://gyazo.com/9dfa51d3773e8d86889c8f34a3a3b0b3
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)