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)