Hi, so i made a fan obstacle that when the player touches, he gets launched upwards into the air. This works fine except for when i start rotating the fan. If i turn it diagonally, the player will still get launched diagonally of course, but he won’t face that direction for some reason. Any help? The MoveTo part is anchored and is facing upwards.
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local root = char:WaitForChild("HumanoidRootPart")
local target = workspace:WaitForChild("TargetPart")
root.CFrame = CFrame.lookAt(root.Position, target.Position)
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local hrp = char:WaitForChild("HumanoidRootPart")
local part = workspace:WaitForChild("TargetPart")
hrp.CFrame = CFrame.new(hrp.Position, hrp.Position + part.CFrame.LookVector)
Keep in mind this is just an example. Yours will look a bit different …
This is just how to make that call.
Where did that come from … it would be, self._MoveTo.CFrame.LookVector)
I don’t know if your .self is right but, I do know …
hrp.CFrame = CFrame.new(hrp.Position, hrp.Position + part.CFrame.LookVector)
Will make the player face the same direction as the part (as far as the Y).