Im trying to make a script that if you click a block with the name "Touch" A gui pops up, This is what i have so far but its only if i click one block not any
game.Workspace:FindFirstChild(script.Parent.Value.Value).Click.ClickDetector.MouseClick:connect(function()
game.Players.LocalPlayer.PlayerGui.Buy.Visible = true
end)

1 comment
It doesnt work and i need it to check blocks inside of models