Specifically, I'm trying to make a versatile wall climbing script. I cannot for the life of me apply force to the player. Nothing works. I can't even move the player. Just. How do I easily and smoothly move the player, while keeping the player at a certain angle? Anything helps.
Applying force takes PRIORITY.
EDIT: I don't care about anything other than force anymore. JUST TELL ME HOW TO APPLY FORCE, PLEASE!!
Well, this isn't directly helping, nor is it a real solution. There's no force involved either, since I suck at that kind of stuff.
CFrame
can be used lots of different ways. One of them being CFrame.new(position1,position2)
. position2
is the object the player looks at, while position1 is whatever the cframe position is.
A good way to use this would be:
local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local Root = character:WaitForChild("HumanoidRootPart") game:GetService("RunService").RenderStepped:Connect(function() Root.CFrame = CFrame.new(Root.Position,workspace.LookAtPart.Position) end)
The code above is in a LocalScript in StarterGui!
Hope this helps!