It keeps saying "Attempted to call a number value on line 9"
local Block = script.Parent
script.Parent.ClickDetector.MouseClick:Connect(function()
wait(2)
local Block = Instance.new("Part", game.Workspace.Block)
script.Parent.Transparency = 0.6
script.Parent.Anchored = false
script.Parent.CanCollide = true
if (Block.Transparency = 0.6) then
wait(2)
game.Workspace.Block:Destroy()
end
end)
Can someone fix this?
