Im making a script where a player can thrust forward in the direction he/she is facing. The only problem is that i can't find the direction the player is facing.
local Player = game.Players.LocalPlayer
Mouse = Player:GetMouse()
local canJump = true
local facing = Player.Character.Torso
Mouse.KeyDown:connect(function(Key)
if(Key:lower() == "f") and canJump == true then
canJump = false
Player.Character.Torso.Velocity = Vector3.new(0,115,200) --How high Player jumps
wait(3)
canJump = true
end
end)

1 comment
http://wiki.roblox.com/index.php?title=CFrame&redirect=no#lookVector