Hi, if you seen my last post a couple days ago, I’m trying to make a game kinda like Mortal Kombat or Streetfighter. Right now I was able to make a script a way to copy the two characters, but the problem is is the 2nd player isn’t facing the 1st player.
(This script is in ServerScriptService if you didn’t know)
local player1 = false
local player2 = false
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
task.wait()
char.Archivable = true
if player1 == false then
player1 = true
local clonedChar = char:Clone()
clonedChar.Humanoid.DisplayName = "Player 1"
clonedChar.Name = "Player 1"
clonedChar.HumanoidRootPart.CFrame = workspace.PlayerOneStand.CFrame
clonedChar.Parent = workspace
elseif player2 == false and player1 == true then
player2 = true
local clonedChar = char:Clone()
clonedChar.Humanoid.DisplayName = "Player 2"
clonedChar.Name = "Player 2"
clonedChar.HumanoidRootPart.CFrame = workspace.PlayerTwoStand.CFrame
clonedChar.Parent = workspace
else
char.Archivable = false
end
end)
end)