local uis = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
local character = plr.Character or plr.CharacterAdded:Wait()
local hum = character:WaitForChild("Humanoid")
local humroot = character:WaitForChild("HumanoidRootPart")
local function raycast()
local raycastParams = RaycastParams.new()
raycastParams.FilterType = Enum.RaycastFilterType.Exclude
raycastParams.FilterDescendantsInstances = {character}
local raycastOrigin = humroot.Position
local raycastDirection = Vector3.new(0, 0, 1.25)
local raycastHit = workspace:Raycast(raycastOrigin, raycastDirection, raycastParams)
if raycastHit then
print(raycastHit.Instance)
end
end
uis.JumpRequest:Connect(raycast)
Does anyone have an idea on how I can fix it? It’s only hitting one face of a part.