To start off I made a floating book which functions like a pet for designs to my game. It works however it doesn't face the right way properly and I don't know why. Here's a video showcasing it: https://gyazo.com/e28b64b47f20048db9243099ff902aa1
CODE:
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
if Player.TeamColor == BrickColor.new("Electric blue") then
Character.Humanoid.MaxHealth = 350
Character.Humanoid.Health = 350
local mageBook = game.ReplicatedStorage:WaitForChild("FX").MageBook:Clone()
mageBook.Parent = Character
local bodyPos = Instance.new("BodyPosition", mageBook)
bodyPos.MaxForce = Vector3.new(400000, 400000, 400000)
local bodyGyro = Instance.new("BodyGyro", mageBook)
bodyGyro.MaxTorque = Vector3.new(400000, 400000, 400000)
while wait() do
bodyPos.Position = Character.HumanoidRootPart.Position + Vector3.new(1,1,4)
bodyGyro.CFrame = Character.Head.CFrame
end
end
end)
end)

1 comment
I messed around a bit with the first code and managed to fix it. TYSM!!