I’ve been trying to find out how to easily (or a hacky/hard way) to get a full raycast around an object, kind of like a sphere.
I’ve searched up posts on here, but I can’t find a post that correctly defines it for me.
Something like this.
(I used a part for the sphere around the character.)
1 Like
workspace:GetPartBoundsInRadius() should work.
WorldRoot:GetPartBoundsInRadius (roblox.com)
ex:
for i, v in pairs(workspace:GetPartBoundsInRadius(Vector3.new(0,0,0),10) do
--anything within 10 studs (even if the magnitude isn't 10 studs) will run through here
end
It seems to work. At first I was having errors for misplacing parentheses, as you forgot one at the end. It works, though!