With this Block.Touched:Connect(function(hit) He gets the value of who to touch, but what if he is already touching? Does not work.
2 Blocks, 1 is a decoration and it's stil, when I push a button the other block will be cloned from ReplicatedStorage and will be moved closer to block 1, block 2 stays for 3 seconds, even though the block 2 is inside block 1 it doesn't finds block 1 if i'm on touching of block 2 doesn't detect either, only if i move ...
for i = 1, #FireBrick do
local child = FireBrick[i]
if child.ClassName == "Part" then
child.Size = Vector3.new(7.5, 1, 1)
Main.Transparency = 1
child.Touched:Connect(function(hit)
print("Hited" ..hit.Name)
if hit.Name == "Block1" then
hit:Destroy()
end
end)
local cFire = Fire:Clone()
cFire.Parent = child
end
end
wait(3)
Main:Destroy()
