I really hate having to ask questions here, because I like to solve problems without having to make people solve them for me but this is really beginning to frustrate me now because I have zero clue what to do.
If you’ve seen this then you know I’m working on a thing that simulates gravitational attraction to a planet, but I had a little optional thing there that asked how to keep the character pointing like this and I got a great answer for all of my questions but the person who gave the solution said to use BodyGyros to keep the character upright.
Now this seems to me like a great answer but I don’t know how to use the unit Vector in the BodyGyro, because it’s a Vector3 and not a CFrame, and I don’t know how to convert one into the other.
Here’s my code, yes, it’s a mess.
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local hrp = character.HumanoidRootPart local attachment = Instance.new("Attachment", hrp) local lineforce = Instance.new("LineForce", hrp) lineforce.Attachment0 = attachment lineforce.Attachment1 = workspace.Planet.Planet lineforce.ApplyAtCenterOfMass = true lineforce.Magnitude = 1000 local gyro = Instance.new("BodyGyro", hrp) gyro.MaxTorque = Vector3.new(650000,0,650000) gyro.P = 650000 gyro.CFrame = -- now this is where i'm struggling end) end