#a little aid with this hitbox im trying to do

1 messages · Page 1 of 1 (latest)

hidden pewter
#

so i got this little cylinder on the floor and i want it to only detect if the hitbox part that is smaller inside of it, touches something
mostly cuz the part right now is detecting everything else around it

local cursorw = game.Workspace:WaitForChild("Cursor"):WaitForChild("Hitbox")
cursorw.Touched:Connect(function(oPart)
    print("Touched:", oPart.Name)
    task.wait(0.5)
      -- dont mind this part i was just trying stuff out (if you could help with this too thatd be awesome)
    local SurfaceSide
    SurfaceSide = oPart:GetTouchingParts(function()
        if oPart == Enum.NormalId.Top then
            print("Top")
        end
        if oPart == Enum.NormalId.Bottom then
            print("Bottom")
        end
        if oPart == Enum.NormalId.Left then
            print("Left")
        end
        if oPart == Enum.NormalId.Right then
            print("Right")
        end
        if oPart == Enum.NormalId.Front then
            print("Front")
        end
        if oPart == Enum.NormalId.Back then
            print("Back")
            task.wait(3)
        end
    end)
end)
slow ridge
hidden pewter
slow ridge
#

alternatives: GetPartBoundsInBox or GetPartBoundsInRadius

hidden pewter
#

Alright ill have to try learning that

#

I saw that but thought i could make it work with touched