
Keyless

local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
local camera = workspace.CurrentCamera
RunService.RenderStepped:Connect(function()
if humanoid.FloorMaterial == Enum.Material.Air then
local lookVector = camera.CFrame.LookVector
-- ez
local targetCFrame = CFrame.new(hrp.Position, hrp.Position + lookVector)
hrp.CFrame = targetCFrame
end
end)No comments yet for this script.