I am trying to make a script. When you touch the specific block, the block will disappear then another block will appear. Anything wrong with this script?
Script:
local Block = script.Parent
local TouchPart = Block.TouchPart
local Block2 = game.Workspace.Appear2
TouchPart.Touched:Connect(function(PartThatTouched)
local player = PartThatTouched.Parent
Block.Transparency = 1
Block2.Transparency = 0
end)