IconButton.MouseButton1Click:Connect((function(input)
if debounce and input. -- Need To Change
end))
UserInputService.InputBegan:Connect(function(input)
if debounce and input.KeyCode == Enum.KeyCode.Tab then
debounce = false
if Cancel.Visible then
SetProfileEnabled(false)
else
open = not open
SetPlayerList(open)
wait(tweenTime + 0.1)
end
debounce = true
end
end)
To change the input to detect when the player clicks their mouse, you would use Enum.UserInputType.MouseButton1
:
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.UserInputType.MouseButton1 then
-- Code here executes when the player clicks
end
end)
1 Like
Thanks For Teaching Me It Was My 1st Time Using This Dev Forum
1 Like