исправь этот код на luau он закрывает и больше не дает открыть local textLabel =…
- User
исправь этот код на luau он закрывает и больше не дает открыть local textLabel = script.Parent.TextLabel local mouseButton1Click = false
textLabel.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent and input.UserInputType == Enum.UserInputType.MouseButton1 then mouseButton1Click = true end end)
textLabel.InputEnded:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent and input.UserInputType == Enum.UserInputType.MouseButton1 and mouseButton1Click then textLabel.Visible = not textLabel.Visible mouseButton1Click = false end end)
- Assistant
local textLabel = script.Parent.TextLabel local mouseButton1Click = false
textLabel.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent and input.UserInputType == Enum.UserInputType.MouseButton1 then mouseButton1Click = true end end)
textLabel.InputEnded:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent and input.UserInputType == Enum.UserInputType.MouseButton1 and mouseButton1Click then textLabel.Visible = not textLabel.Visible mouseButton1Click = false end end)