Hi, i was learning about region3 for my game skill but there a problem that region 3 that i write detect Baseplate only can anyone help me please?
Here my script :
function swordrush()
print("test")
local char = script.Parent.Parent
local hitbox = Region3.new(Vector3.new(5,0,5), Vector3.new(10,5,15))
local regionpart = Instance.new("Part", workspace)
local oldpos = regionpart
regionpart.Anchored = true
regionpart.CanCollide = false
regionpart.Size = hitbox.Size
regionpart.Massless = true
regionpart.CFrame = char:FindFirstChild("HumanoidRootPart").CFrame + (char.HumanoidRootPart.CFrame.LookVector * 6)
while true do
wait()
for i,v in pairs(workspace:FindPartsInRegion3(hitbox, nil, math.huge)) do
print(v.Name)
end
end
end
script.Parent.Activated:Connect(swordrush)
I place this on tools