im making a flight system but when im moving and look a different direction i dont go that direction i keep going the same one how could i implement a way for the character move where im looking when i turn that way. heres a video if it could help in any way of what it looks like right now. https://gyazo.com/e17f455f8e8729e73bf9bfced48f0ae6
1 Like
You mean where your camera is facing or where the character is facing?
character since forced shiftlock
use the hrp.CFrame.LookVector. It should be the forward direction of the humanoidrootpart. Set your body mover’s Velocity to the lookvector
bodymover.Velocity = hrp.CFrame.lookVector * multiplier
thats what i did and it works kinda cause it goes where i look but if turn it just keeps going the same direction should i run a while loop?
A while loop would work but I suggest using an event. I gtg now
im using uis wouldnt that work?
local players = game:GetService("Players")
local player = players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
task.wait(3)
hrp.CFrame *= CFrame.Angles(0, math.rad(180), 0)
Local script example, not sure what you mean but you’d just rotate the player’s character 180 degrees if you want them to face the opposite direction.