local floorRay = Ray.new(Torso.Position, (Torso.Position - Vector3.new(0, 200, 0)).unit * 200)
local floorHit, floorPos = workspace:FindPartOnRay(floorRay, Character)
if floorHit then
Figure.Position = floorPos
local random = CFrame.new(floorPos) * CFrame.new((math.random() * 2-1) * 9, ,(math.random() * 2-1) * 9)
Figure.CFrame = random
end
I've tried doing this but it seems to float in air rather than just being in the nearest floor when not in ground, I need help because this ain't working

1 comment
Still didn't work, what I'm trying to do is position a part in a random radius relative to the torso on the floor if you're above ground