When I am in a certain direction the pet is sideways instead of the way the character is facing.
Picture:
Code:
local Pets = game:GetService("ServerStorage"):WaitForChild("Pets")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local Head = character:WaitForChild("Head")
local currentPet = "Cloud"
local clonedPet = Pets:FindFirstChild(currentPet):Clone()
clonedPet.Parent = character
while wait() do
local pos = Head.CFrame * Vector3.new(2, 2, 2)
clonedPet.Main.BodyGyro.CFrame = character.HumanoidRootPart.CFrame
clonedPet.Main.BodyPosition.Position = Vector3.new(pos.x, pos.y, pos.z)
end
end)
end)