Run it
Copy the script and paste it into your executor.
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local disabled = {}
local floorY = nil
local floor = Instance.new("Part")
floor.Size = Vector3.new(10, 1, 10)
floor.Anchored = true
floor.CanQuery = false
floor.CanTouch = false
floor.Transparency = 1
floor.Parent = workspace.CurrentCamera
params = RaycastParams.()
params.RespectCanCollide =
(part)
part:() floorY
cf, size = part.CFrame, part.Size
halfHeight = .(cf.RightVector.Y) * size.X /
+ .(cf.UpVector.Y) * size.Y /
+ .(cf.LookVector.Y) * size.Z /
cf.Position.Y + halfHeight > floorY +
part.CanCollide
disabled[part] =
part.CanCollide =
disabled[part]
disabled[part] =
part.CanCollide =
()
_, name ({ , })
root = :(name)
root
_, part (root:())
(part)
elapsed =
RunService.Heartbeat:((dt)
char = player.Character
root = char char:()
humanoid = char char:()
(root humanoid)
height = humanoid.HipHeight + root.Size.Y /
params.FilterDescendantsInstances = { char, .CurrentCamera }
hit = :(root.Position, .(, -(height + ), ), params)
floorY = hit hit.Position.Y floorY root.Position.Y - height
floor.CFrame = .(root.Position.X, floorY - , root.Position.Z)
elapsed = elapsed + dt
elapsed >=
elapsed =
()
)Noclip

Universal