local frame = script.Parent.Parent.userInterface.badgeFrame
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
frame.InputBegan:Connect(function(input)
if input == Enum.K
end)
the if statement
local frame = script.Parent.Parent.userInterface.badgeFrame
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
frame.InputBegan:Connect(function(input)
if input == Enum.K
end)
the if statement
if input.UserInputType == Enum.UserInputType.MouseButton1 then
-- do stuff
end