I need to be able to check if part1 has touched part2.
This won’t work because you need to have part1 be an actual part.
-- Check if two parts have touched
local part1 = script.Parent.Part1
local part2 = script.Parent.Part2
part1.Touched:Connect(function(hit2)
if hit2.Parent == part2 then
print('part1 has touched to part2')
else
print('they have not touched yet')
end
end)