When you hold right mouse button you scope in with a gun I only know how to do that with a key, but how to do it with mouse?
Player = game.Players.LocalPlayer mouse = Player:GetMouse() if mouse then mouse.KeyDown:connect(function(key) if key== "c" then print("Test") end end) end
Here see if this works
UserInputService.InputBegan:Connect(function(Input) if Input.UserInputType == Enum.UserInputType.MouseButton1 then -- mouse elseif Input.UserInputType == Enum.KeyCode.ButtonR2 then -- R2 end end)