I want to make a jump system for my game. But when I try to jump with CFrame it just spawns up in the air.
This is my current script
MovementEvents.Jump.OnServerEvent:Connect(function(player)
if canJump == true then
workspace.Sled:SetPrimaryPartCFrame(CFrame.new(workspace.Sled.PrimaryPart.Position + Vector3.new(0,10,0)))
end
end)
How would I make it smooth?